function change = Time(rate)
change = -log(1-rand(1))/rate;