Random numbers from the Poisson distribution. Equivalent to R's rpois().
rpois()
Number of values to generate (fractions are truncated, as in R).
Mean.
An array of n values; NaN for invalid parameters.
n
NaN
setSeed(1);rpois(5, 3); // [2, 2, 3, 5, 2] Copy
setSeed(1);rpois(5, 3); // [2, 2, 3, 5, 2]
Random numbers from the Poisson distribution. Equivalent to R's
rpois().