normrnd
Normal random numbers
Description
Examples
Input Arguments
Output Arguments
Alternative Functionality
normrnd
is a function specific to normal distribution. Statistics and Machine Learning Toolbox™ also offers the generic functionrandom
, which supports various probability distributions. To userandom
, create aNormalDistribution
probability distribution object and pass the object as an input argument or specify the probability distribution name and its parameters. Note that the distribution-specific functionnormrnd
is faster than the generic functionrandom
.Use
randn
to generate random numbers from the standard normal distribution.To generate random numbers interactively, use
randtool
, a user interface for random number generation.
References
[1] Marsaglia, G, and W. W. Tsang. “A Fast, Easily Implemented Method for Sampling from Decreasing or Symmetric Unimodal Density Functions.” SIAM Journal on Scientific and Statistical Computing. Vol. 5, Number 2, 1984, pp. 349–359.
[2] Evans, M., N. Hastings, and B. Peacock. Statistical Distributions. 2nd ed. Hoboken, NJ: John Wiley & Sons, Inc., 1993.
Extended Capabilities
Version History
Introduced before R2006a