Python‎ > ‎random‎ > ‎

random.expovariate()


Introduction
Expovariate(lambd) method of random.Random instance
Exponential distribution.

Syntax
random.expovariate(x)->random value

Parameters
x=number

Example
The return is:
import random
x=random.expovariate(22)
print(x)

>>> 
0.02701203482817212
>>>

Comments