TrinityCore
|
Go to the source code of this file.
Classes | |
class | RandomEngine |
Functions | |
TC_COMMON_API int32 | irand (int32 min, int32 max) |
TC_COMMON_API uint32 | urand (uint32 min, uint32 max) |
TC_COMMON_API uint32 | urandms (uint32 min, uint32 max) |
TC_COMMON_API uint32 | rand32 () |
TC_COMMON_API Milliseconds | randtime (Milliseconds min, Milliseconds max) |
TC_COMMON_API float | frand (float min, float max) |
TC_COMMON_API float | rand_norm () |
TC_COMMON_API float | rand_chance () |
TC_COMMON_API uint32 | urandweighted (size_t count, double const *chances) |
bool | roll_chance_f (float chance) |
bool | roll_chance_i (int chance) |
TC_COMMON_API float frand | ( | float | min, |
float | max | ||
) |
TC_COMMON_API int32 irand | ( | int32 | min, |
int32 | max | ||
) |
TC_COMMON_API uint32 rand32 | ( | ) |
Definition at line 70 of file Random.cpp.
TC_COMMON_API float rand_chance | ( | ) |
TC_COMMON_API float rand_norm | ( | ) |
TC_COMMON_API Milliseconds randtime | ( | Milliseconds | min, |
Milliseconds | max | ||
) |
Definition at line 62 of file Random.cpp.
|
inline |
|
inline |
TC_COMMON_API uint32 urand | ( | uint32 | min, |
uint32 | max | ||
) |
Definition at line 42 of file Random.cpp.
TC_COMMON_API uint32 urandms | ( | uint32 | min, |
uint32 | max | ||
) |
Definition at line 49 of file Random.cpp.
TC_COMMON_API uint32 urandweighted | ( | size_t | count, |
double const * | chances | ||
) |