On 28/11/12 21:34, Ricky wrote:
Hi all, I am doing a project on traffic simulation. I want to introduce exponential arrival distribution to precede this task. Therefore I want write a code in python for exponential arrival distribution. I am very new for programming and if anybody can help me on this that would be great. Cheers, Ricky
Maybe you mean something like, >>> from random import expovariate >>> expovariate(1) 0.09133428954823608 >>> expovariate(1) 2.5388809393383407 >>> Duncan -- http://mail.python.org/mailman/listinfo/python-list