RANDGEOM(p)
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.
RANDGEOM(0.4).
RAND.