randp
general · scripts/general/randp.m
RANDP Poisson distributed pseudorandom integers (Octave name).
R = RANDP(L) returns samples from the Poisson distribution with rate
L. R = RANDP(L, N, ...) sets the output size as for RAND. L may be
an array; then R has the shape of L unless size arguments are given.
Negative, NaN or infinite rates yield NaN; a rate of zero yields 0.
Octave-compatible public name wrapping __randp__. MATLAB base has no
public randp (Statistics Toolbox has poissrnd). Unmarked MATLAB-mode
scripts that never call this name are unaffected.
See also RAND, RANDN, RANDE, RANDG.