MRandomLCG Class Reference#include <mRandom.h>
Inheritance diagram for MRandomLCG:
[legend]List of all members.
Detailed Description
Linear Congruential Method, the "minimal standard generator".
Fast, farly good random numbers (better than using rand)
- Author:
- Park & Miller, 1988, Comm of the ACM, 31(10), pp. 1192-1201
Constructor & Destructor Documentation
MRandomLCG::MRandomLCG |
( |
|
) |
|
MRandomLCG::MRandomLCG |
( |
S32 |
s |
) |
|
virtual MRandomLCG::~MRandomLCG |
( |
|
) |
[inline, virtual] |
Member Function Documentation
static void MRandomLCG::setGlobalRandSeed |
( |
U32 |
seed |
) |
[static] |
void MRandomLCG::setSeed |
( |
S32 |
s |
) |
[virtual] |
S32 MRandomLCG::randI |
( |
S32 |
i, |
|
|
S32 |
n | |
|
) |
| | [inline] |
U32 MRandomLCG::randI |
( |
void |
|
) |
[virtual] |
Member Data Documentation
|