absl::log_uniform_int_distribution::log_uniform_int_distribution

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

Synopsis

Declared in <absl/random/log_uniform_int_distribution.h>

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

Parameters

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