TrinityCore
|
Go to the source code of this file.
Functions | |
static SFMTRand * | GetRng () |
int32 | irand (int32 min, int32 max) |
uint32 | urand (uint32 min, uint32 max) |
uint32 | urandms (uint32 min, uint32 max) |
float | frand (float min, float max) |
Milliseconds | randtime (Milliseconds min, Milliseconds max) |
uint32 | rand32 () |
float | rand_norm () |
float | rand_chance () |
uint32 | urandweighted (size_t count, double const *chances) |
Variables | |
static thread_local std::unique_ptr< SFMTRand > | sfmtRand |
static RandomEngine | engine |
float frand | ( | float | min, |
float | max | ||
) |
|
static |
uint32 rand32 | ( | ) |
Definition at line 70 of file Random.cpp.
float rand_chance | ( | ) |
float rand_norm | ( | ) |
Milliseconds randtime | ( | Milliseconds | min, |
Milliseconds | max | ||
) |
Definition at line 62 of file Random.cpp.
Definition at line 42 of file Random.cpp.
Definition at line 49 of file Random.cpp.
uint32 urandweighted | ( | size_t | count, |
double const * | chances | ||
) |
|
static |
Definition at line 25 of file Random.cpp.
|
static |
Definition at line 24 of file Random.cpp.