absl::uniform_real_distribution::operator()

Function call operators

Synopses

Declared in <absl/random/uniform_real_distribution.h>

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

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

Generates a random value using the given parameter set.

template<typename URBG>
uniform_real_distribution<RealType>::result_type
operator()(
    URBG& gen,
    param_type const& p);
» more...

Return Value

A random value in the half-open interval [a, b).]

Parameters

NameDescription
genThe uniform random bit generator.
pThe parameter set to use for this call.