This is the documentation for Enlighten.

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

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.

  • No labels