RANDGEOM

RANDGEOM

Synopsis

RANDGEOM(p)

Description

RANDGEOM returns a geometric-distributed random number. The number of independent trials with probability p until the first success. The probability distribution for geometric variates is,

p(k) = p (1-p)^(k-1), for k >= 1.

  • If p < 0 or p > 1 RANDGEOM returns #NUM! error.

Examples

RANDGEOM(0.4).

See also

RAND.