Random Number Generator (>1000/sec)
Posted on 2000-04-16
I need to generate a lot (>1000/sec) of random numbers in a short space of time. The random number generator I've used in the pased (see below) uses time as the seed. This works fine if you are generating less then one per sec but I need more than that. When I use the function I get the same 3 numbers for a second and once the clocks second changes I get another 3 numbers. I'm using Borland C++.
rand_num = rand() % 11;
while (rand_num < 1)
Thanks in advance.