Run
import random lambd = 2 randomnumber = random.expovariate(lambd) print(randomnumber)
Output