Thanks, however without comments I find it just as hard to understand.
Would you mind clarifying what's going on, how would I get the x and y?
Also, I'm not familiar with final and static.
As I've linked above I've grabbed it from http://StackOverflow.com and adapted it to Processing.
I dunno what's behind the algorithm & never heard about it either! X_X
It only accepts a parameter called lambda. Maybe try out passing your coordinates as such? :-/
Answers
http://StackOverflow.com/questions/1241555/algorithm-to-generate-poisson-and-binomial-random-numbers
Thanks, however without comments I find it just as hard to understand. Would you mind clarifying what's going on, how would I get the x and y? Also, I'm not familiar with final and static.
Thanks again
As I've linked above I've grabbed it from http://StackOverflow.com and adapted it to Processing.
I dunno what's behind the algorithm & never heard about it either! X_X
It only accepts a parameter called lambda. Maybe try out passing your coordinates as such? :-/
You can remove both if you wish. It doesn't change anything after all. :P