Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void randomnumbers(int *arr, )
- {
- int test;
- bool check;
- for (int i = 0; i < 100; i++)
- {
- test = 1 + (rand() % 6);
- for (int j = 0; j < i; j++)
- {
- if (test == arr[j])
- {
- check=true;
- break;
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment