Mercurial > hg > openttd
diff src/core/random_func.hpp @ 17148:848eb1ffb17d draft
(svn r21886) -Codechange: move documentation towards the code to make it more likely to be updated [n].
author | rubidium <rubidium@openttd.org> |
---|---|
date | Sat, 22 Jan 2011 09:53:15 +0000 |
parents | f8e9a3f0c140 |
children | c99e695378ce |
line wrap: on
line diff
--- a/src/core/random_func.hpp +++ b/src/core/random_func.hpp @@ -37,23 +37,8 @@ /** The state of the randomizer */ uint32 state[2]; - /** - * Generate the next pseudo random number - * @return the random number - */ uint32 Next(); - - /** - * Generate the next pseudo random number scaled to max - * @param max the maximum value of the returned random number - * @return the random number - */ uint32 Next(uint32 max); - - /** - * (Re)set the state of the random number generator. - * @param seed the new state - */ void SetSeed(uint32 seed); }; extern Randomizer _random; ///< Random used in the game state calculations