Navigation :
random.poisson
random.poisson, function
def pure random.poisson(lambda: number): number
Draws a deviate from a Poisson distribution of mean lambda.
lambda: the mean of the distribution (non-negative).
Example
montecarlo 10000 with
x = random.poisson(3.2)
sample avgX = avg(x)
show scalar "Average sample" with avgX
This outputs the following scalar:
The values returned by this function are non-negative integers.