Math and Computation

Probability Functions

Downloaderf(x)   Returns the value of erf(x) where 'erf' is the "error function". Downloadexp_dist(x)   Returns a random number from 0 to x with an exponential ditribution. Downloadfactorial(number)   Returns the factorial of the given number. Downloadcombination(set,subset)   Returns the number of unique subsets created from all combinations of the given number of elements. Downloadpermutation(set,subset)   Returns the number of unique subsets created from all permutations of the given number of elements in which the order of the chosen elements is significant. Downloadroll_dice(num,sides)   Returns the sum of the given number of rolls of dice with the given number of sides. Downloadgauss(mean, deviation)   Returns a pseudo-random number with a Gaussian distribution.