Producing random numbers with the geometric distribution: randgeometric

### 8.3.12 Producing random numbers with the geometric distribution: randgeometric

The randgeometric command finds random numbers chosen according to the geometric distribution (see Section 8.4.13).

- randgeometric takes one argument:
  p, a probability (a number between 0 and 1).
- randgeometric(p) returns a number chosen randomly according to the geometric distribution with probability p.

#### Example

Input:

randgeometric(0.2)

Output (for example):

11