Generate Sample from Exponential Distribution

For Generate Random Sample, the exponential distribution can be defined by either the mean or variance; the other parameter can then be determined. The variance is equal to the square of the mean, so if you set both parameters ensure this condition is satisfied.