#include <random_func.hpp>
Public Member Functions | |
uint32 | Next () |
Generate the next pseudo random number. | |
uint32 | Next (uint16 max) |
Generate the next pseudo random number scaled to max. | |
void | SetSeed (uint32 seed) |
(Re)set the state of the random number generator. | |
Data Fields | |
uint32 | state [2] |
The state of the randomizer. |
Definition at line 36 of file random_func.hpp.
uint32 Randomizer::Next | ( | ) |
Generate the next pseudo random number.
Definition at line 18 of file random_func.cpp.
Referenced by Next().
uint32 Randomizer::Next | ( | uint16 | max | ) |
Generate the next pseudo random number scaled to max.
max | the maximum value of the returned random number |
Definition at line 27 of file random_func.cpp.
void Randomizer::SetSeed | ( | uint32 | seed | ) |
(Re)set the state of the random number generator.
seed | the new state |
Definition at line 32 of file random_func.cpp.
References state.
Referenced by _GenerateWorld().