I'm trying to get 9 numbers from 0 to 8 using this
I am then testing using an array if the random number has already come out and if so loop until an unpicked number appears.
Trouble is it stays in the loop forever, numbers like 4, 6 and 3 keep repeating?
Any ideas please?
Visual Basic:
intButtonNumber = CInt(Int((8* Rnd())))
I am then testing using an array if the random number has already come out and if so loop until an unpicked number appears.
Trouble is it stays in the loop forever, numbers like 4, 6 and 3 keep repeating?
Any ideas please?