powered by
{rpois}
test4(Nsim = 10^4, lambda = 100)
Nsim
rpois(Nsim,lambda)
mean(test4()) # produces [1] 100.0273
Run the code above in your browser using DataLab