|
OpenTTD
|
Implementation of the pseudo random generator. More...
#include "../stdafx.h"#include "random_func.hpp"#include "bitmath_func.hpp"#include "../safeguards.h"Go to the source code of this file.
Functions | |
| void | SetRandomSeed (uint32 seed) |
| (Re)set the state of the random number generators. | |
Variables | |
| Randomizer | _random |
| Random used in the game state calculations. | |
| Randomizer | _interactive_random |
| Random used every else where is does not (directly) influence the game state. | |
Implementation of the pseudo random generator.
Definition in file random_func.cpp.
| void SetRandomSeed | ( | uint32 | seed | ) |
(Re)set the state of the random number generators.
| seed | the new state |
Definition at line 67 of file random_func.cpp.
References Randomizer::SetSeed().
1.8.1.2