Random
generate random numbers. The generator itself
is the mercenne twister defined in C++'s STL (as the std::mt19937
type). Its public members are
void reset(size_t seed); double uniform(); double normal(); double logNormal(double mean, double stdDev); double exponential(double mean);
The members uniform, normal, logNormal
and exponential
generate random
numbers conforming their distribution type.
To reset the mt19937
mercenne twister the member reset
is called,,
providing it with a seed. By default the computer's time in seconds since the
epoch is used as seed value.