absl::zipf_distribution::zipf_distribution

Constructs a distribution from the given parameters.

Synopsis

Declared in <absl/random/zipf_distribution.h>

explicit
zipf_distribution(
    result_type k,
    double q = 2.0,
    double v = 1.0);

Parameters

NameDescription
kThe largest value the distribution can produce.
qThe exponent parameter of the distribution.
vThe offset parameter of the distribution.