Subtractive random number generator. More...
#include <UniformRandom.h>
Public Member Functions | |
unsigned int | operator() (unsigned int limit) |
Returns a number less than the argument. | |
void | initialize (unsigned int seed) |
Initialize with the given seed. | |
SubtractiveRNG (const unsigned int seed) | |
Constructor allowing you to initialize the seed. | |
SubtractiveRNG () | |
Default Constructor. Initializes its state with some number you don't see. |
Subtractive random number generator.
This subtractive_rng
class is supplied as an SGI extension to the STL. The functionality is duplicated here to avoid dependence on extensions.