# HG changeset patch # User Wuzzy # Date 1570743267 -3600 # Node ID be514c1e39891ad65e80faaf8ce95f477ad349c7 # Parent 75df3ddba09c61d6310ffb8cfe6c25790ce4092b LuaGameplay: add paragraph in GetRandom diff -r 75df3ddba09c -r be514c1e3989 LuaGameplay.wiki --- a/LuaGameplay.wiki Thu Oct 10 22:33:36 2019 +0100 +++ b/LuaGameplay.wiki Thu Oct 10 22:34:27 2019 +0100 @@ -469,4 +469,6 @@ == Randomness == === !GetRandom(number) === -Returns a randomly generated whole number in the range of `0` to `number - 1`. `number` must be a whole number >= 1. This random number uses the game seed, so is synchronised, and thus safe for multiplayer and saved games. Use `GetRandom` for anything that could impact the engine state. For example, a visual gear could simply use Lua’s `math.random`, but adding a regular gear should use `GetRandom`. +Returns a randomly generated whole number in the range of `0` to `number - 1`. `number` must be a whole number >= 1. This random number uses the game seed, so is synchronised, and thus safe for multiplayer and saved games. + +Use `GetRandom` for anything that could impact the engine state. For example, a visual gear could simply use Lua’s `math.random`, but adding a regular gear should use `GetRandom`. \ No newline at end of file