class Geo::SimpleRNG
The 'super-duper' random number generator with shuffle (an LCG).
Cheap and a good LCG, but will still perform poorly with some modulos.
Functions
Name | Description |
---|---|
operator()() | Gets the next random number. |
SimpleRNG(u32) | Creates a SimpleRNG with the given seed. |
Anchor | ||||
---|---|---|---|---|
|
u32 Geo::SimpleRNG::operator()
...
public: u32 operator()()
...
Gets the next random number.
Anchor | ||||
---|---|---|---|---|
|
Geo::SimpleRNG::SimpleRNG
...
public: SimpleRNG
(
u32 seed
)
...
Creates a SimpleRNG with the given seed.