Xavistian

Random

May 30th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.27 KB | None | 0 0
  1. #include "stdafx.h"
  2. #include <conio.h>
  3. #include <iostream>
  4. using namespace std;
  5. using namespace System;
  6.  
  7. int main()
  8. {
  9.     Random x;
  10.     int *A = new int[10];
  11.     for (int i = 0; i < 10; i++)
  12.     {
  13.         A[i] = x.Next(1, 7);
  14.         cout << A[i] << ' ';
  15.     }
  16.     _getch();
  17.     return 0;
  18. }
Add Comment
Please, Sign In to add comment