SimulationCraft
SimulationCraft is a tool to explore combat mechanics in the popular MMO RPG World of Warcraft (tm).
rng::rng_t Struct Reference
Inheritance diagram for rng::rng_t:
rng::basic_rng_t< xoshiro256plus_t >

Additional Inherited Members

- Public Member Functions inherited from rng::basic_rng_t< xoshiro256plus_t >
 basic_rng_t (const basic_rng_t &)=delete
 
basic_rng_toperator= (const basic_rng_t &)=delete
 
const char * name () const
 Return engine name.
 
void seed (uint64_t s)
 Seed rng engine.
 
uint64_t reseed ()
 Reseed using current state.
 
void reset ()
 Reset any state. More...
 
double real ()
 Uniform distribution in range [0..1) More...
 
bool roll (double chance)
 Bernoulli Distribution.
 
double range (double min, double max)
 Uniform distribution in the range [min..max)
 
range (T min, T max)
 Uniform distribution in the range [min..max)
 
range (T max)
 Uniform distribution in the range [0..max)
 
timespan_t range (timespan_t min, timespan_t max)
 Timespan uniform distribution in the range [min..max)
 
double gauss (double mean, double stddev, bool truncate_low_end=false)
 Gaussian Distribution. More...
 
timespan_t gauss (timespan_t mean, timespan_t stddev)
 Timespan Gaussian Distribution.
 
double exponential (double nu)
 Exponential Distribution.
 
double exgauss (double gauss_mean, double gauss_stddev, double exp_nu)
 Exponentially Modified Gaussian Distribution.
 
timespan_t exgauss (timespan_t mean, timespan_t stddev, timespan_t nu)
 Timespan exponentially Modified Gaussian Distribution.