poisson random number code

Instead of using RPAM function
Fixed logic

&& not ||