|
| | CRNG (UInt32 un_seed) |
| | Class constructor.
|
| |
| | CRNG (const CRNG &c_rng) |
| | Class copy constructor.
|
| |
| virtual | ~CRNG () |
| | Class destructor.
|
| |
| UInt32 | GetSeed () const throw () |
| | Returns the seed of this RNG.
|
| |
| void | SetSeed (UInt32 un_seed) throw () |
| | Sets the seed of this RNG.
|
| |
| void | Reset () |
| | Reset the RNG.
|
| |
| bool | Bernoulli (Real f_true=0.5) |
| | Returns a random value from a Bernoulli distribution.
|
| |
| CRadians | Uniform (const CRange< CRadians > &c_range) |
| | Returns a random value from a uniform distribution.
|
| |
| Real | Uniform (const CRange< Real > &c_range) |
| | Returns a random value from a uniform distribution.
|
| |
| SInt32 | Uniform (const CRange< SInt32 > &c_range) |
| | Returns a random value from a uniform distribution.
|
| |
| UInt32 | Uniform (const CRange< UInt32 > &c_range) |
| | Returns a random value from a uniform distribution.
|
| |
| Real | Exponential (Real f_mean) |
| | Returns a random value from an exponential distribution.
|
| |
| UInt32 | Poisson (Real f_mean) |
| | Returns a random value from a Poisson distribution.
|
| |
| Real | Gaussian (Real f_std_dev, Real f_mean=0.0f) |
| | Returns a random value from a Gaussian distribution.
|
| |
| Real | Rayleigh (Real f_sigma) |
| | Returns a random value from a Rayleigh distribution.
|
| |
| Real | Lognormal (Real f_sigma, Real f_mu) |
| | Returns a random value from a Lognormal distribution.
|
| |
| template<typename T > |
| void | Shuffle (std::vector< T > &vec_data) |
| | Shuffles the values of the given vector in-place.
|
| |
The RNG.
This class is the real random number generator. You need an instance of this class to be able to generate random numbers.
Definition at line 90 of file rng.h.