Generates a random integer using the given parameter set.

Synopsis

Declared in <absl/random/discrete_distribution.h>

template<typename URBG>
discrete_distribution<IntType>::result_type
operator()(
    URBG& g,
    param_type const& p);

Return Value

A random integer distributed according to p.

Parameters

Name

Description

g

The uniform random bit generator.

p

The parameter set to use for this call.

Created with MrDocs