Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
Go to the source code of this file.
Classes | |
class | BasicRandom |
Functions | |
ICECORE_API void | SRand (udword seed) |
udword | Rand () |
inline_ float | UnitRandomFloat () |
Returns a unit random floating-point value. More... | |
ICECORE_API udword | GetRandomIndex (udword max_index) |
Returns a random index so that 0<= index < max_index. More... | |
ICECORE_API udword GetRandomIndex | ( | udword | max_index) |
Returns a random index so that 0<= index < max_index.
Definition at line 30 of file IceRandom.cpp.
References gRandomGenerator, and BasicRandom::Randomize().
udword Rand | ( | ) |
Definition at line 22 of file IceRandom.cpp.
Referenced by UnitRandomFloat().
ICECORE_API void SRand | ( | udword | seed) |
Definition at line 17 of file IceRandom.cpp.
Returns a unit random floating-point value.
Definition at line 19 of file IceRandom.h.
References float, ONE_OVER_RAND_MAX, and Rand().