# Producing random numbers with the exponential distribution: randexp

### 8.3.13 Producing random numbers with the exponential distribution: randexp

The randexp command finds random numbers chosen according to the exponential distribution (see Section 8.4.15).

- randexp takes one argument:
  λ, a positive real number (the parameter).
- randexp(λ) returns a number chosen randomly according to the exponential distribution with parameter λ.

#### Example.

Input:

randexp(2.1)

Output (for example):

0.0288626239833