57 "Template argument must be an arithmetic type");
66 "Template argument must be an arithmetic type");
68 return random_uniform<T>(rng, r - l) + l;
73 # endif // DSGRANDOM_H nat_t throw_dice(rng_t &, nat_t num_faces=DEFAULT_DICE_NUM_FACES)
T random_uniform(rng_t &, T)
Definition: random.H:54
constexpr lint_t NUM_BITS
Definition: random.H:33
double real_t
Definition: types.H:51
std::mt19937_64 rng_t
Definition: types.H:52
nat_t random_binomial(rng_t &, nat_t, real_t p=DEFAULT_P)
rng_t::result_type rng_seed_t
Definition: types.H:53
rng_seed_t get_random_seed()
long long lint_t
Definition: types.H:49
constexpr nat_t DEFAULT_DICE_NUM_FACES
Definition: random.H:35
unsigned long int nat_t
Definition: types.H:50
Value & value(MapKey< Key, Value > &item)
Definition: map.H:77
constexpr real_t DEFAULT_P
Definition: random.H:34
bool random_Bernoulli(rng_t &, real_t p=DEFAULT_P)