12 #ifndef __ICERANDOM_H__ 13 #define __ICERANDOM_H__ 41 #endif // __ICERANDOM_H__ #define ONE_OVER_RAND_MAX
Inverse of the max possible value returned by rand()
inline_ ~BasicRandom()
Destructor.
FUNCTION ICECORE_API udword Rand()
FUNCTION ICECORE_API void SRand(udword seed)
inline_ BasicRandom(udword seed=0)
Constructor.
unsigned int udword
sizeof(udword) must be 4
inline_ udword Randomize()
inline_ float UnitRandomFloat()
Returns a unit random floating-point value.
inline_ void SetSeed(udword seed)
ICECORE_API udword GetRandomIndex(udword max_index)
Returns a random index so that 0<= index < max_index.
inline_ udword GetCurrentValue() const