absl::uniform_int_distribution::operator()

Generates a random value in the interval [a, b].

Synopsis

Declared in <absl/random/uniform_int_distribution.h>

template<typename URBG>
result_type
operator()(URBG& gen);

Return Value

A random value in the closed interval [a, b].

Parameters

NameDescription
genThe uniform random bit generator.