You are making it too complicated with that while loop and the fill() thing. Use a for loop. In fact it will be a for loop that looks a lot like the one at the end that you use to print the...
Type: Posts; User: pbrockway2
You are making it too complicated with that while loop and the fill() thing. Use a for loop. In fact it will be a for loop that looks a lot like the one at the end that you use to print the...
Are you sure the array is supposed to contain 10,000 numbers?
If so, and you didn't want any repeats, you wouldn't fill them with random numbers - you would fill them with the numbers 1->10,000...