Gamma random numbers
generates an array of random numbers from the gamma distribution, where
r = gamrnd(a,b,sz1,...,szN)sz1,...,szN indicates the size of each dimension.
gamrnd is a function specific to the gamma distribution.
Statistics and Machine Learning Toolbox™ also offers the generic function random, which supports various probability distributions. To use
random, create a GammaDistribution 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 function gamrnd is faster than
the generic function random.
Use randg to generate random numbers from the
standard gamma distribution (unit scale).
To generate random numbers interactively, use randtool, a user interface for random number generation.
[1] Marsaglia, George, and Wai Wan Tsang. “A Simple Method for Generating Gamma Variables.” ACM Transactions on Mathematical Software 26, no. 3 (September 1, 2000): 363–72. https://doi.org/10.1145/358407.358414.
gamcdf | gamfit | gaminv | gamlike | GammaDistribution | gampdf | gamstat | randg | random