random-exponential 1.2.1 random-gamma 2.0 random-normal 1.2.1 random-poisson 1.2.1
random-exponential mean
random-gamma alpha lambda
random-normal mean standard-deviation
random-poisson mean
Reports an accordingly distributed random number with the mean and, in the case of the normal distribution, the standard-deviation. (The standard deviation may not be negative.)
random-exponential reports an exponentially distributed random
floating point number. It is equivalent to (- mean) * ln
random-float 1.0.
random-gamma reports a gamma-distributed random floating point number as controlled by the floating point alpha and lambda parameters. Both inputs must be greater than zero. (Note: for results with a given mean and variance, use inputs as follows: alpha = mean * mean / variance; lambda = 1 / (variance / mean).)
random-normal reports a normally distributed random floating point number.
random-poisson reports a Poisson-distributed random integer.
show random-exponential 2
;; prints an exponentially distributed random floating
;; point number with a mean of 2
show random-normal 10.1 5.2
;; prints a normally distributed random floating point
;; number with a mean of 10.1 and a standard deviation
;; of 5.2
show random-poisson 3.4
;; prints a Poisson-distributed random integer with a
;; mean of 3.4