17 #ifndef _SCC_MT19937_RNG_H_
18 #define _SCC_MT19937_RNG_H_
45 static void seed(uint64_t new_seed = std::mt19937_64::default_seed);
61 std::uniform_int_distribution<uint64_t> u;
69 template <
typename T>
static T
uniform() {
70 std::uniform_int_distribution<T> u;
80 static uint64_t
uniform(uint64_t min, uint64_t max) {
82 std::uniform_int_distribution<uint64_t> u(min, max);
91 std::normal_distribution<> u;
100 std::lognormal_distribution<> u;
105 static std::mt19937_64& inst();
a mersenne-twister based random number generator
static double lognormal()
static void enable_global_seed(bool enable)
static uint64_t uniform(uint64_t min, uint64_t max)
static uint64_t uniform()
static void seed(uint64_t new_seed=std::mt19937_64::default_seed)