from math import log from random import * def Expo(a): return -1/a*log(1-random())