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