absl::uniform_int_distribution::uniform_int_distribution

Constructors

Synopses

Declared in <absl/random/uniform_int_distribution.h>

Constructs a distribution over the entire range of result_type.

uniform_int_distribution();
» more...

Constructs a distribution from the given parameter set.

explicit
uniform_int_distribution(param_type const& param);
» more...

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

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

Parameters

NameDescription
paramThe parameter set.
loThe lower bound of the closed interval.
hiThe upper bound of the closed interval.