Produces random values of type T uniformly distributed in [lo, hi).]
Declared in <absl/random/distributions.h>
template<
typename R = void,
typename URBG>
R
Uniform(
URBG&& urbg,
R lo,
R hi)
requires !std::is_same_v<R, void>;
Overload of Uniform() using the default closed-open interval of [lo, hi),] and returning values of type T.
A random value uniformly distributed in [lo, hi).]
| Name | Description |
|---|---|
| urbg | The uniform random bit generator. |
| lo | The inclusive lower bound of the interval. |
| hi | The exclusive upper bound of the interval. |