Function cmb_random_PERT

Function Documentation

static inline double cmb_random_PERT(const double min, const double mode, const double max)

PERT distribution, a scaled and shifted beta distribution. The mean is (min + 4 * mode + max) / 6.

Can be used as a heuristically determined distribution where the parameters are “at least min”, “most likely around mode”, and “not more than max”.

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