61 return chance >
irand(0, 99);
72 static constexpr result_type min() {
return std::numeric_limits<result_type>::min(); }
73 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()
bool roll_chance_f(float chance)
TC_COMMON_API float rand_norm()
bool roll_chance_i(int chance)
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)
TC_COMMON_API float rand_chance()
static constexpr result_type min()
static constexpr result_type max()
result_type operator()() const