Produces random values across the full range of an unsigned type.
Declared in <absl/random/distributions.h>
template<
typename R,
typename URBG>
R
Uniform(URBG&& urbg)
requires !std::numeric_limits<R>::is_signed;
Overload of Uniform() using the minimum and maximum values of a given type T (which must be unsigned), returning a value of type unsigned T.
A random value uniformly distributed across the range of R.
| Name | Description |
|---|---|
| urbg | The uniform random bit generator. |