### 7.3.5 Producing random numbers with a Poisson distribution: randpoisson

Recall that given a number λ, the corresponding Poisson distribution P(λ) satisfies

Prob(X ≤ k) = exp(−λ)λk/k!

It will have mean λ and standard deviation √λ.

The randpoisson command will take a parameter λ and return an integer chosen at random using the Poisson distribution. If you enter

randpoisson(10.6)

you might get

16