These functions implement random number generators from different probability distributions.

Functions and Predicates

Return a boolean sample from the Bernoulli distribution defined by probability \({\bf p}\)

Return a sample from the binomial distribution defined by sample number t and probability p

Return a sample from the cauchy distribution defined by \({\bf mean}, {\bf scale}\)

Return a sample from the cauchy distribution defined by \({\bf mean}, {\bf scale}\)

Return a sample from the chi-squared distribution defined by the degree of freedom \({\bf n}\)

Return a sample from the chi-squared distribution defined by the degree of freedom \({\bf n}\)

Return a sample from the discrete distribution defined by the array of weights \({\bf weights}\) that assigns a weight to each integer starting from zero

Return a sample from the exponential distribution defined by \({\bf lambda}\)

Return a sample from the exponential distribution defined by \({\bf lambda}\)

Return a sample from the Fisher-Snedecor F-distribution defined by the degrees of freedom \({\bf d1}, {\bf d2}\)

Return a sample from the gamma distribution defined by \({\bf alpha}, {\bf beta}\)

Return a sample from the gamma distribution defined by \({\bf alpha}, {\bf beta}\)

Return a sample from the lognormal distribution defined by \({\bf mean}, {\bf std}\)

Return a sample from the lognormal distribution defined by \({\bf mean}, {\bf std}\)

Return a sample from the normal distribution defined by \({\bf mean}, {\bf std}\)

Return a sample from the normal distribution defined by \({\bf mean}, {\bf std}\)

Return a sample from the poisson distribution defined by mean

Return a sample from the poisson distribution defined by an integer mean

Return a sample from the student's t-distribution defined by the sample size \({\bf n}\)

Return a sample from the student's t-distribution defined by the sample size \({\bf n}\)

Return a sample from the uniform distribution defined by \({\bf lowerbound}, {\bf upperbound}\)

Return a sample from the uniform distribution defined by \({\bf lowerbound}, {\bf upperbound}\)

Return a sample from the Weibull distribution defined by \({\bf shape}, {\bf scale}\)

Return a sample from the Weibull distribution defined by \({\bf shape}, {\bf scale}\)