method for simulating poisson processes