absl::zipf_distribution::operator()

Generates a random integer using the given parameter set.

Synopsis

Declared in <absl/random/zipf_distribution.h>

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

Return Value

A random integer distributed according to p.

Parameters

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