21 Rand() : un01(0.0, 1.0) {}
22 std::mt19937 rng_mt19937;
23 std::uniform_real_distribution<> un01;
26 double randMT19937() {
27 return stl_rand->un01( stl_rand->rng_mt19937);
31 #include <boost/random/mersenne_twister.hpp>
32 #include <boost/random/uniform_01.hpp>
34 static boost::mt19937 s_rng_mt19937;
35 static boost::uniform_01<boost::mt19937> s_rng_un01_mt19937(s_rng_mt19937);
36 double randMT19937() {
38 return s_rng_un01_mt19937();