Torque2D Reference
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
RandomGeneratorBase Class Referenceabstract

#include <mRandom.h>

+ Inheritance diagram for RandomGeneratorBase:

Public Member Functions

void resetSeed (void)
 
S32 getSeed (void) const
 
F32 randRangeF (const F32 from, const F32 to)
 
S32 randRangeI (const S32 from, const S32 to)
 
virtual F32 randF (void)
 
virtual U32 randI (void)=0
 
virtual void setSeed (const S32 seed)=0
 

Protected Member Functions

 RandomGeneratorBase ()
 

Protected Attributes

S32 mSeed
 

Constructor & Destructor Documentation

◆ RandomGeneratorBase()

RandomGeneratorBase ( )
inlineprotected

Member Function Documentation

◆ getSeed()

S32 getSeed ( void  ) const
inline

◆ randF()

virtual F32 randF ( void  )
inlinevirtual

◆ randI()

virtual U32 randI ( void  )
pure virtual

Implemented in RandomLCG, RandomR250, and RandomPCG.

◆ randRangeF()

F32 randRangeF ( const F32  from,
const F32  to 
)
inline

◆ randRangeI()

S32 randRangeI ( const S32  from,
const S32  to 
)
inline

◆ resetSeed()

void resetSeed ( void  )

◆ setSeed()

virtual void setSeed ( const S32  seed)
pure virtual

Implemented in RandomLCG, RandomR250, and RandomPCG.

Member Data Documentation

◆ mSeed

S32 mSeed
protected

The documentation for this class was generated from the following files: