MRandomR250

Engine/source/math/mRandom.h

Fast, very good random numbers.

More...

Private Attributes

Public Functions

0..2^31 random number generator

Detailed Description

Fast, very good random numbers.

Period = 2^249

Kirkpatrick, S., and E. Stoll, 1981; A Very Fast Shift-Register Sequence Random Number Generator, Journal of Computational Physics, V. 40.

Maier, W.L., 1991; A Fast Pseudo Random Number Generator, Dr. Dobb's Journal, May, pp. 152 - 157

Private Attributes

U32 mBuffer [250]
S32 mIndex 

Public Functions

MRandomR250()

MRandomR250(S32 s)

~MRandomR250()

randI()

Reimplemented from: MRandomGenerator

setSeed(S32 s)

Reimplemented from: MRandomGenerator