v0.1.8
|
A linear congruential generator capable of generating pseudorandom numbers. More...
#include <Random.hpp>
Public Member Functions | |
Random (UInt32 seed) | |
Random (UInt32 seed, UInt32 multiplier, UInt32 addition, UInt32 modulus) | |
void | SetSeed (UInt32 seed) |
UInt32 | GetInteger () |
Float32 | GetDecimal () |
String | GetString (const String &characters, UInt32 count) |
Float32 | GetUniform (Float32 a, Float32 b) |
Float32 | GetExponential (Float32 beta) |
Float32 | GetWeibull (Float32 a, Float32 b, Float32 c) |
Static Public Member Functions | |
static Float32 | UniformDist (Float32 a, Float32 b, Float32 u) |
static Float32 | ExponentialDist (Float32 beta, Float32 u) |
static Float32 | WeibullDist (Float32 a, Float32 b, Float32 c, Float32 u) |
static Float32 | TriangularDist (Float32 xmin, Float32 xmax, Float32 c, Float32 u) |
static Float32 | Normal (Float32 mean, Float32 variance, Float32 x) |
A linear congruential generator capable of generating pseudorandom numbers.
This class works similarly to C++'s built in rand() function but provides more control (and thus more room for error). Also included are common probability distributions.