absl::uniform_real_distribution::uniform_real_distribution

Constructors

Synopses

Declared in <absl/random/uniform_real_distribution.h>

Constructs a distribution over the half-open interval [0, 1).]

uniform_real_distribution();
» more...

Constructs a distribution from the given parameter set.

explicit
uniform_real_distribution(param_type const& param);
» more...

Constructs a distribution over the half-open interval [lo, hi).]

explicit
uniform_real_distribution(
    result_type lo,
    result_type hi = 1);
» more...

Parameters

NameDescription
paramThe parameter set.
loThe lower bound of the half-open interval.
hiThe upper bound of the half-open interval.