Torque2D Reference
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
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 ( )
inlineprotected

Member Function Documentation

S32 getSeed ( void  ) const
inline
virtual F32 randF ( void  )
inlinevirtual
virtual U32 randI ( void  )
pure virtual

Implemented in RandomR250, and RandomLCG.

F32 randRangeF ( const F32  from,
const F32  to 
)
inline
S32 randRangeI ( const S32  from,
const S32  to 
)
inline
void resetSeed ( void  )
virtual void setSeed ( const S32  seed)
pure virtual

Implemented in RandomR250, and RandomLCG.

Member Data Documentation

S32 mSeed
protected

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