1 #ifndef OPENMW_COMPONENTS_MISC_RNG_H
2 #define OPENMW_COMPONENTS_MISC_RNG_H
static void init()
seed the RNG
Definition: rng.cpp:8
static float rollClosedProbability()
return value in range [0.0f, 1.0f] <- note closed upper range.
Definition: rng.cpp:18
static int rollDice(int max)
return value in range [0, max) <- note open upper range.
Definition: rng.cpp:23
static int roll0to99()
return value in range [0, 99]
Definition: rng.hpp:29
static float rollProbability()
return value in range [0.0f, 1.0f) <- note open upper range.
Definition: rng.cpp:13