Search code examples
poisson

How to simulate Poisson arrival?


I want to generate events that "arrive" with "t" seconds as mean inter-arrival delay? Starting at time 0, how do I generate the times when the event occurs? Basically, I want to generate sequence of times such as t1, t2, t3, ... when the event occurs. How do I write such a function?

Thank you.


Solution

  • You don't say what language - but take a look at Generate (Poisson?) random variable in real-time