[#InsecureRandomContext-rand_uniform_duration] = xref:InsecureRandomContext.adoc[InsecureRandomContext]::rand_uniform_duration :relfileprefix: ../ :mrdocs: Generate a uniform random duration in the range from 0 (inclusive) to range (exclusive). == Synopsis Declared in `<random.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename Chrono> requires StdChronoDuration<typename Chrono::duration> Chrono::duration rand_uniform_duration(Chrono::duration range) noexcept; ---- == Return Value A uniform random duration in [0, range) (or (range, 0]when `range` is negative). == Parameters [cols="1,4"] |=== | Name| Description | *range* | The signed bound on the duration; the result lies between 0 and `range`. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#