|
Torque2D Reference
|
#include <mRandom.h>
Public Member Functions | |
| RandomPCG () | |
| RandomPCG (const S32 seed) | |
| RandomPCG (const S32 seed, const S32 stream) | |
| void | setSeed (const S32 seed) |
| void | setSeed (const S32 seed, const S32 stream) |
| U32 | randI (void) |
| U32 | randI (U32 bound) |
| 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 |
PCG Random Number Generator
Fast and statistically excellent random numbers
Period = 2^64
Copyright 2014 Melissa O'Neill oneil.nosp@m.l@pc.nosp@m.g-ran.nosp@m.dom..nosp@m.org
Licensed under the Apache License, Version 2.0
| RandomPCG | ( | ) |
| RandomPCG | ( | const S32 | seed | ) |
| RandomPCG | ( | const S32 | seed, |
| const S32 | stream ) |
|
inline |
|
inlinevirtual |
Implements RandomGeneratorBase.
|
virtual |
Implements RandomGeneratorBase.
| void setSeed | ( | const S32 | seed, |
| const S32 | stream ) |