54template <std::
floating_po
int T>
61template <std::
signed_
integral T>
64 return chance >
irand(0, 99);
68template <std::
unsigned_
integral T>
71 return chance >
urand(0, 99);
82 static constexpr result_type min() {
return std::numeric_limits<result_type>::min(); }
83 static constexpr result_type max() {
return std::numeric_limits<result_type>::max(); }
std::chrono::milliseconds Milliseconds
Milliseconds shorthand typedef.
TC_COMMON_API uint32 urandms(uint32 min, uint32 max)
TC_COMMON_API float frand(float min, float max)
TC_COMMON_API uint32 rand32()
TC_COMMON_API float rand_norm()
TC_COMMON_API Milliseconds randtime(Milliseconds min, Milliseconds max)
TC_COMMON_API int32 irand(int32 min, int32 max)
TC_COMMON_API uint32 urandweighted(size_t count, double const *chances)
TC_COMMON_API uint32 urand(uint32 min, uint32 max)
bool roll_chance(T chance)
TC_COMMON_API float rand_chance()
static constexpr result_type min()
static constexpr result_type max()
result_type operator()() const