Torque3D Documentation / _generateds / MRandomGenerator

MRandomGenerator

Engine/source/math/mRandom.h

Base class for random number generators.

More...

Protected Attributes

Protected Functions

Public Functions

randF(F32 i, F32 n)

i..n F32 random number generator

0.0 .. 1.0 F32 random number generator

randI(S32 i, S32 n)

i..n integer random number generator

0..2^31 random number generator

Detailed Description

Base class for random number generators.

Protected Attributes

S32 mSeed 

Protected Functions

MRandomGenerator()

Public Functions

~MRandomGenerator()

getSeed()

randF(F32 i, F32 n)

i..n F32 random number generator

randF(void )

0.0 .. 1.0 F32 random number generator

randI(S32 i, S32 n)

i..n integer random number generator

randI(void )

0..2^31 random number generator

Reimplemented by: MRandomR250, MRandomLCG

setSeed()

setSeed(S32 s)

Reimplemented by: MRandomLCG, MRandomR250