absl::uniform_int_distribution::uniform_int_distribution

Constructs a distribution over the closed interval [lo, hi].

Synopsis

Declared in <absl/random/uniform_int_distribution.h>

explicit
uniform_int_distribution(
    result_type lo,
    result_type hi = (std::numeric_limits<result_type>::max)());

Parameters

NameDescription
loThe lower bound of the closed interval.
hiThe upper bound of the closed interval.