class Geo::GoodRNG
A Mersenne Twister RNG.
High quality, but not blazing fast and each instance is about 2.5k.
Functions
Name | Description |
---|---|
GoodRNG(u32) | Creates a GoodRNG with the given seed. |
operator()() | Gets the next random number. |
Anchor | ||||
---|---|---|---|---|
|
Geo::GoodRNG::GoodRNG
...
public: GoodRNG
(
u32 seed
)
...
Creates a GoodRNG with the given seed.
Anchor | ||||
---|---|---|---|---|
|
u32 Geo::GoodRNG::operator()
...
public: u32 operator()()
...
Gets the next random number.