Function cmb_random_dice
Defined in File cmb_random.h
Function Documentation
-
static inline long cmb_random_dice(const long a, const long b)
A discrete uniform distribution on
[a, a+1, a+2, ..., b]fora < b. The function name reflects what happens fora = 1,b = 6.See also https://en.wikipedia.org/wiki/Discrete_uniform_distribution