This is the documentation for Enlighten.
class Geo SimpleRNG
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. |
u32 Geo::SimpleRNG::operator()
public: u32 operator()()
Gets the next random number.
Geo::SimpleRNG::SimpleRNG
public: SimpleRNG
(
  u32 seed
)
Creates a SimpleRNG with the given seed.