Search code examples
pythonexponential-distribution

Exponential distribution in Python


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


Solution

  • random.expovariate of course.