www.digitalmars.com
Last update Mon Jun 19 20:51:24 2006

std.random

void rand_seed(uint seed, uint index);
The random number generator is seeded at program startup with a random value. This ensures that each program generates a different sequence of random numbers. To generate a repeatable sequence, use rand_seed() to start the sequence. seed and index start it, and each successive value increments index. This means that the nth random number of the sequence can be directly generated by passing index + n to rand_seed().

uint rand();
Get the next random number in sequence.

BUGS:
shares a global single state, not multithreaded