Exponential distribution in Python

Jake picture Jake · Mar 31, 2010 · Viewed 13.1k times · Source

What's the easiest way to draw a random number from an exponential distribution in Python?

Answer

Alex Martelli picture Alex Martelli · Mar 31, 2010

random.expovariate of course.