9.3.13 Producing random numbers with the exponential distribution: randexp
The randexp command finds random numbers chosen
according to the exponential distribution (see
Section 9.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):