Produces random values across the full range of an unsigned type.
Synopsis
Declared in <absl/random/distributions.h>
template<
typename R,
typename URBG>
R
Uniform(URBG&& urbg)
requires !std::numeric_limits<R>::is_signed;
Description
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.
Return Value
A random value uniformly distributed across the range of R.
Parameters
Name |
Description |
urbg |
The uniform random bit generator. |
Created with MrDocs