MRandomLCG
Linear Congruential Method, the "minimal standard generator".
Protected Static Attributes
Public Functions
MRandomLCG(S32 s)
Public Static Functions
setGlobalRandSeed(U32 seed)
Detailed Description
Linear Congruential Method, the "minimal standard generator".
Fast, farly good random numbers (better than using rand)
Park & Miller, 1988, Comm of the ACM, 31(10), pp. 1192-1201
Protected Static Attributes
const S32 msQuotient
const S32 msRemainder
Public Functions
MRandomLCG()
MRandomLCG(S32 s)
~MRandomLCG()
randI(S32 i, S32 n)
i..n integer generator
randI(void )
Reimplemented from: MRandomGenerator
setSeed(S32 s)
Reimplemented from: MRandomGenerator