[#FastRandomContext-randrange-0a] = xref:FastRandomContext.adoc[FastRandomContext]::randrange :relfileprefix: ../ :mrdocs: Generate a uniform random duration in the range [0..max). Precondition: max.count() > 0] == Synopsis Declared in `<random.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<xref:StdChronoDuration.adoc[StdChronoDuration] Dur> Dur randrange(std::common_type_t<Dur> range) noexcept; ---- == Return Value A uniform random duration in [0, range).] == Parameters [cols="1,4"] |=== | Name| Description | *range* | The exclusive upper bound on the duration; its count must be greater than 0. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#