absl::poisson_distribution::operator()

Function call operators

Synopses

Declared in <absl/random/poisson_distribution.h>

Generates a random integer.

template<typename URBG>
result_type
operator()(URBG& g);
» more...

Generates a random integer using the given parameter set.

template<typename URBG>
poisson_distribution<IntType>::result_type
operator()(
    URBG& g,
    param_type const& p);
» more...

Return Value

  • A random integer distributed according to the parameter set.
  • A random integer distributed according to p.

Parameters

NameDescription
gThe uniform random bit generator.
pThe parameter set to use for this call.