srand
void srand(unsigned int seed)
Seeds the random number generator.
Parameters
unsigned int seed
The seed for the function rand.
Notes
- A particular seed will cause the random number generator to produce the same random sequence.
- The millisecond portion of the system time may be used as a seed. This will
ensure that the sequence returned by rand will be different subsequent to each
seeding of the random number generator.