Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

class Geo::GoodRNG

A Mersenne Twister RNG.

High quality, but not blazing fast and each instance is about 2.5k.

Functions

NameDescription
GoodRNG(u32)

Creates a GoodRNG with the given seed.

operator()()

Gets the next random number.


Anchor
a738c3eb6cd3fc313d18b6c6e0173053c
a738c3eb6cd3fc313d18b6c6e0173053c

Geo::GoodRNG::GoodRNG

...

public: GoodRNG
(
    u32 seed
)

...

Creates a GoodRNG with the given seed.


Anchor
a76d60a024a7a17293a12336172a5b3f2
a76d60a024a7a17293a12336172a5b3f2

u32 Geo::GoodRNG::operator()

...

public: u32 operator()()

...

Gets the next random number.