26 #ifndef WFMATH_RANDGEN_H 27 #define WFMATH_RANDGEN_H 29 #include <wfmath/MersenneTwister.h> 35 #ifdef WFMATH_USE_OLD_RAND 41 inline void SeedRand(
unsigned int val) {MTRand::instance.seed(val);}
43 inline double DRand() {
return MTRand::instance.rand();}
45 inline unsigned int IRand(
unsigned int val) {
return MTRand::instance.randInt(val - 1);}
51 #endif // WFMATH_RANDGEN_H Generic library namespace.
Definition: atlasconv.h:45