b0b3kpl

Untitled

Sep 9th, 2016
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.27 KB | None | 0 0
  1.     void randomnumbers(int *arr, )
  2.     {
  3.         int test;
  4.         bool check;
  5.  
  6.         for (int i = 0; i < 100; i++)
  7.         {
  8.             test = 1 + (rand() % 6);
  9.             for (int j = 0; j < i; j++)
  10.             {
  11.                if (test == arr[j])
  12.                {
  13.                    check=true;
  14.                  break;
  15.             }
  16.                 }
  17.             }
  18.         }
  19.     }
Advertisement
Add Comment
Please, Sign In to add comment