Generating different sequences of random numbers
Posted on 2000-02-15
When I use randomize() and rand(), I get a sequence of random numbers in the range I need. However, I need to generate about a 1000 DIFFERENT sequences of random numbers in the given range. About 500 or so runs result in 500 same sequences since randomize() uses the system clock as a seed and 500 runs take less than a second to execute. In other words, since my program runs faster than the seed (clock seconds) can change, I get a lot of same sequences of random numbers. I tried slowing down the program by inserting loops but then it runs too slow. Is there anyway to get a 1000 different sequences?