Synopsis

Declared in <mp‐units/random.h>

template<Quantity Q>
requires std::integral<typename Q::rep>
struct geometric_distribution
    : std::geometric_distribution<Q::rep>

Base Classes

Name Description

std::geometric_distribution<Q::rep>

A discrete geometric random number distribution.

Types

Name

Description

param_type

Parameter type.

result_type

The type of the range of the distribution.

Member Functions

Name

Description

__generate

max

Returns the least upper bound value of the distribution.

min

Returns the greatest lower bound value of the distribution.

operator()

Generating functions.

p

Returns the distribution parameter p.

param

param overloads

reset

Resets the distribution state.

Created with MrDocs