Generate a uniform random duration in the range [0..max). Precondition: max.count() > 0]
Declared in <random.h>
template<StdChronoDuration Dur>
Dur
randrange(std::common_type_t<Dur> range) noexcept;
A uniform random duration in [0, range).]
| Name | Description |
|---|---|
| range | The exclusive upper bound on the duration; its count must be greater than 0. |