Exponential arrival distribution in Python

Ian Kelly ian.g.kelly at gmail.com
Wed Nov 28 17:25:38 EST 2012


On Wed, Nov 28, 2012 at 2:34 PM, Ricky <rakkitha263 at gmail.com> 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.
>

Are you looking for a PRNG using the the exponential distribution?  The
random module built into the standard library already implements this; see:

http://docs.python.org/3/library/random.html#random.expovariate
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20121128/dbc36021/attachment.html>


More information about the Python-list mailing list