[#absl-Uniform-00] = xref:absl.adoc[absl]::Uniform :relfileprefix: ../ :mrdocs: Produces random values in [lo, hi) with an inferred return type.] == Synopsis Declared in `<absl/random/distributions.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename R = void, typename URBG, typename A, typename B> /* implementation-defined */::uniform_inferred_return_t<A, B> Uniform( URBG&& urbg, A lo, B hi) requires std::is_same_v<R, void>; ---- == Description Overload of `Uniform()` using different (but compatible) lo, hi types and the default closed‐open interval of [lo, hi). Note that a compile‐error will] result if the return type cannot be deduced correctly from the passed types. == Return Value A random value uniformly distributed in [lo, hi).] == Parameters [cols="1,4"] |=== | Name| Description | *urbg* | The uniform random bit generator. | *lo* | The inclusive lower bound of the interval. | *hi* | The exclusive upper bound of the interval. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#