Next: , Previous: , Up: Random Number Generators   [Contents][Index]


9.6 Member functions

RNGs have these methods:

T random();

Returns a random number.

void seed(unsigned int);

Seeds the underlying IRNG. See above for an example of seeding with the system timer.