[#absl-Poisson]
= xref:absl.adoc[absl]::Poisson
:relfileprefix: ../
:mrdocs:

Produces a random integral value from a Poisson distribution&period;

== Synopsis

Declared in `&lt;absl&sol;random&sol;distributions&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    typename IntType,
    typename URBG&gt;
IntType
Poisson(
    URBG&& urbg,
    double mean = 1&period;0);
----

== Description

`absl&colon;&colon;Poisson` produces discrete probabilities for a given number of events occurring within a fixed interval within the closed interval &lsqb;0, max&rsqb;&period; `T` must be an integral type&period;

See https&colon;&sol;&sol;en&period;wikipedia&period;org&sol;wiki&sol;Poisson&lowbar;distribution

Example&colon;

absl&colon;&colon;BitGen bitgen&semi; &period;&period;&period; int requests&lowbar;per&lowbar;minute &equals; absl&colon;&colon;Poisson&lt;int&gt;(bitgen, 3&period;2)&semi;

== Return Value

A random value drawn from the Poisson distribution&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *urbg*
| The uniform random bit generator&period;
| *mean*
| The mean number of events per interval&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
