Function cmb_random
Defined in File cmb_random.h
Function Documentation
-
static inline double cmb_random(void)
Continuous uniform distribution on the interval [0, 1].
A 64-bit double has a 53-bit significand. We discard the bottom 11 bits and scale the result by 2^(-53) to get a number in [0.0, 1.0].
See also https://en.wikipedia.org/wiki/Continuous_uniform_distribution