Hi,
I need to be able to quickly generate reasonably random numbers i.e. not a series of numbers produced at one time but successive new random integers between 0 and 8 inclusive. I think my problem arises from the fact that the time period between successive generations is so short that seeding is incapable of producing randomness. I have very limited experience with random number generation. The code I have been trying follows:

Code:
#include "stdlib.h"
int randnum;
while (8 > (randnum = rand() / (RAND_MAX/8))) {
       ;
}
where the integer left after the above condition is used. The above code was from:
http://www.thinkage.ca/english/gcos/.../lib/rand.html
I'm not eternally attached to the above code so if anyone has a simple way to generate "reasonably random" integers between 0 and 8 inclusive with very little time between generations it would be highly appreciated.
Thanks in advance, N.