mp_units::uniform_int_distribution

Synopsis

Declared in <mp-units/random.h>
template<Quantity Q>
requires std::integral<typename Q::rep>
struct uniform_int_distribution
    : std::uniform_int_distribution<Q::rep>

Base Classes

Name Description
std::uniform_int_distribution<Q::rep>Uniform discrete distribution for random numbers. A discrete random distribution on the range

Types

NameDescription
param_type Parameter type.
result_type The type of the range of the distribution.

Member Functions

NameDescription
__generate
a
b
max Returns the inclusive upper bound of the distribution range.
min Returns the inclusive lower bound of the distribution range.
operator() Generating functions.
param param overloads
reset Resets the distribution state.