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