geornd
Random arrays from the geometric distribution.
r = geornd (ps)
returns an array of random numbers chosen
from the Birnbaum-Saunders distribution with probability of success parameter
ps. The size of r is the size of ps.
When called with a single size argument, geornd
returns a square
matrix with the dimension specified. When called with more than one scalar
argument, the first two arguments are taken as the number of rows and columns
and any further arguments specify additional matrix dimensions. The size may
also be specified with a row vector of dimensions, sz.
The geometric distribution models the number of failures (x) of a Bernoulli trial with probability ps before the first success.
Further information about the geometric distribution can be found at https://en.wikipedia.org/wiki/Geometric_distribution
See also: geocdf, geoinv, geopdf, geofit, geostat
Source Code: geornd