Exponential arrival distribution in Python

duncan smith buzzard at invalid.invalid
Thu Nov 29 11:24:20 EST 2012


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



More information about the Python-list mailing list