Function cmb_random_uniform

Function Documentation

static inline double cmb_random_uniform(const double min, const double max)

Continuous uniform distribution on the interval [min, max].

Often used in lack of any other information about a distribution than the endpoints. Assuming a uniform distribution between may then be reasonable, but see also cmb_random_triangular, cmb_random_PERT, and cmb_random_PERT_mod as other possible empirical distributions.

See also https://en.wikipedia.org/wiki/Continuous_uniform_distribution