elle
(Elle)
#1
Figure 10-1. Simple pseudorandom numbers
Table 10-2 lists functions for generating random numbers according to different
distributions.
[ 37 ]
Table 10-2. Functions to generate random numbers according to different distribution
laws
Function Parameters Description
beta
a, b[, size]
Samples for beta distribution over [0, 1]
binomial
n, p[, size]
Samples from a binomial distribution
chisquare
df[, size]
Samples from a chi-square distribution
dirichlet
alpha[, size]
Samples from the Dirichlet distribution
exponential
[ scale, size]
Samples from the exponential distribution
f
dfnum, dfden[, size]
Samples from an F distribution
gamma
shape[, scale, size]
Samples from a gamma distribution
geometric
p[, size]
Samples from the geometric distribution