Returns a function for generating random numbers with an exponential distribution with
the rate lambda; equivalent to time between events in a Poisson process with a mean of 1 / lambda.
For example, exponential(1/40) generates random times between events where, on average, one event
occurs every 40 units of time.