55 return chance >
irand(0, 99);
76 #if COMPILER == COMPILER_MICROSOFT && _MSC_VER <= 1800
80 typedef typename std::discrete_distribution<T>::param_type
base;
82 template<
typename InIt>
85 this->_Pvec.assign(begin, end);
91 using discrete_distribution_param =
typename std::discrete_distribution<T>::param_type;
TC_COMMON_API float frand(float min, float max)
Definition: Random.cpp:58
static TRINITY_CONSTEXPR result_type min()
Definition: Random.h:66
discrete_distribution_param(InIt begin, InIt end)
Definition: Random.h:83
TC_COMMON_API int32 irand(int32 min, int32 max)
Definition: Random.cpp:39
static TRINITY_CONSTEXPR result_type max()
Definition: Random.h:67
T max(const T &x, const T &y)
Definition: g3dmath.h:320
TC_COMMON_API uint32 urand(uint32 min, uint32 max)
Definition: Random.cpp:45
T min(const T &x, const T &y)
Definition: g3dmath.h:305
TC_COMMON_API uint32 rand32()
Definition: Random.cpp:64
bool roll_chance_f(float chance)
Definition: Random.h:47
TC_COMMON_API double rand_chance()
Definition: Random.cpp:74
#define TRINITY_CONSTEXPR
Definition: Define.h:94
int32_t int32
Definition: Define.h:146
uint32_t uint32
Definition: Define.h:150
TC_COMMON_API double rand_norm()
Definition: Random.cpp:69
bool roll_chance_i(int chance)
Definition: Random.h:53
result_type operator()() const
Definition: Random.h:68
#define TC_COMMON_API
Definition: Define.h:116
TC_COMMON_API uint32 urandms(uint32 min, uint32 max)
Definition: Random.cpp:51
std::discrete_distribution< T >::param_type base
Definition: Random.h:80
uint32 result_type
Definition: Random.h:64