Function Reference
— Function File: geornd (p, r, c)
— Function File: geornd (p, sz)

Return an r by c matrix of random samples from the geometric distribution with parameter p, which must be a scalar or of size r by c.

If r and c are given create a matrix with r rows and c columns. Or if sz is a vector, create a matrix of size sz.