absl::log_uniform_int_distribution::log_uniform_int_distribution

Constructors

Synopses

Declared in <absl/random/log_uniform_int_distribution.h>

Constructs a distribution over the entire range of result_type.

log_uniform_int_distribution();
» more...

Constructs a distribution from the given parameter set.

explicit
log_uniform_int_distribution(param_type const& p);
» more...

Constructs a distribution over the closed interval [min, max].

explicit
log_uniform_int_distribution(
    result_type min,
    result_type max = (std::numeric_limits<result_type>::max)(),
    result_type base = 2);
» more...

Parameters

NameDescription
pThe parameter set.
minThe lower bound of the closed interval.
maxThe upper bound of the closed interval.
baseThe base of the logarithm.