40 int Int(
int nLow,
int nHigh);
51 float Float(
float fLow,
float fHigh);
int Int()
Draw the next word.
Rand(int nSeed)
Construct a generator and seed it.
float Float(float fLow, float fHigh)
Draw a floating-point number.
int Int(int nLow, int nHigh)
Draw an integer.
static constexpr int kTableSize
Words of the state table.
Definition rand.h:11
float Float()
Draw a floating-point number in [0, 1).
void Seed(int nSeed)
Fill the state table from a linear congruential sequence and reset both indices.
float RandomFraction()
Draw a floating-point number in [0, 1) from the shared generator.
int RandomWord()
Draw a word from the shared generator.
int RandomInt(int nLow, int nHigh)
Draw an integer from the shared generator.
float RandomFloat(float fLow, float fHigh)
Draw a floating-point number from the shared generator.
void SeedRand(int nSeed)
Reseed the shared generator.