Torque2D Reference

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes

- Class List
- Class Index
- Class Hierarchy
- Class Members

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 | ( |  | ) |
| inline protected

## Member Function Documentation

S32 getSeed | ( | void |  | ) | const
| inline

virtual F32 randF | ( | void |  | ) |
| inline virtual

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:

- math/mRandom.h
- math/mRandom.cc