mp_units::discrete_distribution

Synopsis

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

Base Classes

Name Description
std::discrete_distribution<Q::rep>A discrete_distribution random number distribution.

Types

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

Member Functions

NameDescription
__generate
max Returns the least upper bound value of the distribution.
min Returns the greatest lower bound value of the distribution.
operator() Generating functions.
param param overloads
probabilities Returns the probabilities of the distribution.
reset Resets the distribution state.