1 #ifndef OPENMW_COMPONENTS_MISC_RNG_H
2 #define OPENMW_COMPONENTS_MISC_RNG_H
static void init()
seed the RNG
Definition: rng.cpp:11
static float rollClosedProbability()
return value in range [0.0f, 1.0f] <- note closed upper range.
Definition: rng.cpp:21
static int rollDice(int max)
return value in range [0, max) <- note open upper range.
Definition: rng.cpp:26
static int roll0to99()
return value in range [0, 99]
Definition: rng.hpp:33
static float rollProbability()
return value in range [0.0f, 1.0f) <- note open upper range.
Definition: rng.cpp:16
static std::mt19937 generator
create a RNG
Definition: rng.hpp:18