 
 
 
Recall that given a positive number a, the corresponding exponential distribution satisfies
| Prob(X ≤ t) = a | ∫ | 
 | exp(−a * u) du | 
Given a parameter a, the command randexp(a) will return a number chosen randomly according to the corresponding exponential distribution. For example, if you enter
you might get
 
 
