The problem with using Rnd to generate random numbers is that it uses the system clock to seed - so if you're generating a lot of numbers in quick succession, you will likely get the same number generated 2 or more times in a row. I ran into this issue with my Yahtzee game & worked around it by using Rnd to generate 8 random numbers for each die. Those 8 random numbers are loaded into an array & then I use Rnd to select one of the elements of the array. This generally minimizes sequential duplicates & tests I've done on 1,000,000+ rolls show that the spread of numbers is pretty even.
- Colin.