Random numbers
generates an array of random numbers from the specified probability distribution
using input arguments from any of the previous syntaxes, where
R
= random(___,sz1,...,szN
)sz1,...,szN
indicates the size of each
dimension.
random
is a generic function that accepts either a
distribution by its name 'name'
or a probability
distribution object pd
. It is faster to use a
distribution-specific function, such as randn
and normrnd
for the normal
distribution and binornd
for the binomial
distribution. For a list of distribution-specific functions, see Supported Distributions.
To generate random numbers interactively, use randtool
, a user interface for random number generation.
cdf
| Distribution Fitter | fitdist
| icdf
| makedist
| mle
| paretotails
| pdf