Arrays of random numbers
Arrays of random numbers
Out of context: Reply #7
- Started
- Last post
- 13 Responses
- ********0
you do that with the for loop within a for loop..if that makes sense.
The first on sets up how many numbers you want generate
the second one checks if the number generated matches against any of the numbers already in the array. So it goes through the entire array, one elment at a time and checks it agains the numner you want to add in