Hi, Ricky, Traffic simulation sounds like a good topic to use SimPy, which is a discrete-event simulation library in Python, c.f. http://simpy.sourceforge.net
Professor Norm Matloff wrote a very good tutorial on SimPy, and you can download it here: http://heather.cs.ucdavis.edu/~matloff/simcourse.html Also, I've presented this SimPy package before, my slides might be helpful, http://alberthuang314.blogspot.tw/2012/01/simpy-slides-in-our-company-and-pyhug_26.html In short, SimPy is a process-oriented discrete-event simulation package, which will be easier to maintain than event-oriented discrete-event simulation. It also contains some tools to help us to visualize simulation data. It takes some time to study it, but if you would like to do some simulation projects, it will definitely be a good investment! Have fun with simulation! with Regards, Albert Huang Ricky <rakkitha...@gmail.com> writes: > 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 -- http://mail.python.org/mailman/listinfo/python-list