poisson-process.js: a Random Time-Interval Generator

The software package poisson-process.js is a JavaScript library to generate naturally varying time intervals. It improves realism and natural unpredictability in your games or animations like for example aliens walking by a window or cars trying to drive over your character on a busy road. It can remove bottlenecks in distributed systems by adding jitter that prevents thundering herd problem. It can also simulate the frequency of chat messages, page loads or arriving emails as well as queues, traffic and earthquakes. The underlying mathematical concept is called the Poisson process.

The particle rain animation library Sprinkler.js uses the poisson-process.js extensively to make the rain look naturally random. It works quite well!

See examples and more at github.com/axelpale/poisson-process

Akseli Palén
Hi! I am a creative full-stack web developer and entrepreneur with strong focus on building open source packages for JavaScript community and helping people at StackOverflow. I studied information technology at Tampere University and graduated with distinction in 2016. I wish to make it easier for people to communicate because it is the only thing that makes us one.

Leave a Comment

Your email address will not be published.