Exponential arrival distribution in Python

duncan smith buzzard at invalid.invalid
Thu Nov 29 17:24:20 CET 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)
 >>> expovariate(1)


More information about the Python-list mailing list