You are currently viewing the gmlscripts.pro static mirror. Forum access and script submissions are not available through this mirror.

Invert gmlscripts.pro

exp_dist

exp_dist() Returns a random value with exponential distribution.

exp_dist(mean)
Returns a random number with exponential distribution.
COPY/// exp_dist(mean)
//
//  Returns a random number with exponential distribution.
//
//      mean        mean value of the distribution, real
//
/// gmlscripts.pro/license
{
    return -argument0 * ln(1-random(1));
}

Contributors: pedrosoriom, xot

GitHub: View · Commits · Blame · Raw