randg
general · scripts/general/randg.m
RANDG Gamma distributed pseudorandom numbers (Octave name).
R = RANDG(A) returns samples from the Gamma distribution with shape
A and unit scale. R = RANDG(A, N, ...) sets the output size as for
RAND. A may be an array; then R has the shape of A unless size
arguments are given. Non-positive or non-finite shape values yield
NaN.
Octave-compatible public name wrapping __randg__. MATLAB base has no
public randg (Statistics Toolbox has gamrnd). Unmarked MATLAB-mode
scripts that never call this name are unaffected.
See also RAND, RANDN, RANDE, RANDP.