Changed the method of generating the exponential distribution.