![]() |
TrinityCore
|
Include dependency graph for Random.h:
This graph shows which files directly or indirectly include this file: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) |
| template<std::floating_point T> | |
| bool | roll_chance (T chance) |
| TC_COMMON_API float frand | ( | float | min, |
| float | max | ||
| ) |
| TC_COMMON_API int32 irand | ( | int32 | min, |
| int32 | max | ||
| ) |
| TC_COMMON_API uint32 rand32 | ( | ) |
| 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.
Here is the call graph for this function:
Here is the caller graph for this function:
|
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.
Here is the call graph for this function:
Here is the caller graph for this function:| TC_COMMON_API uint32 urandweighted | ( | size_t | count, |
| double const * | chances | ||
| ) |