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

Invert GMLscripts.com

Computation :: Probability

combination(set, subset)
Returns the number of unique subsets created from all combinations of a number of elements.
erf(x)
Returns the probability that a Gaussian random number falls within a given range.
exp_dist(m)
Returns a random number with exponential distribution.
factorial(number)
Returns the factorial of a given number.
gauss(m, sd)
Returns a pseudo-random number with an exact Gaussian distribution.
permutation(set, subset)
Returns the number of unique subsets created from all permutations of a number of elements.
random_weighted(p0 [, p1, ..., pN])
Returns a randomly selected index based on their given relative probabilities.
roll_dice(num, sides)
Returns the sum of a number of die rolls using dice with a given number of sides.