Torque2D Reference

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

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

Public Member Functions | List of all members
RandomR250 Class Reference

`#include <mRandom.h>`

Inheritance diagram for RandomR250:

## Public Member Functions
| RandomR250 ()
| RandomR250 (const S32 seed)
void | setSeed (const S32 seed)
U32 | randI (void)
Public Member Functions inherited from RandomGeneratorBase
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)

## Additional Inherited Members
Protected Member Functions inherited from RandomGeneratorBase
| RandomGeneratorBase ()
Protected Attributes inherited from RandomGeneratorBase
S32 | mSeed

## 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

## Constructor & Destructor Documentation

RandomR250 | ( |  | ) |

RandomR250 | ( | const S32 | seed | ) |

## Member Function Documentation

U32 randI | ( | void |  | ) |
| virtual

Implements RandomGeneratorBase.

void setSeed | ( | const S32 | seed | ) |
| virtual

Implements RandomGeneratorBase.

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

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