random.poisson

random.poisson, function

def pure random.poisson(lambda: number): number

Draws a deviate from a Poisson distribution of mean lambda.

Example

montecarlo 10000 with
  x = random.poisson(3.2)
  sample avgX = avg(x)

show scalar "Average sample" with avgX

This outputs the following scalar:

Average sample
3.1807

Remarks

The values returned by this function are non-negative integers.

User Contributed Notes
0 notes + add a note