LuaGameplay: Move GetRandom to bottom
authorWuzzy
Wed, 17 Apr 2019 13:29:48 +0100
changeset 1779 9cb32a3519ee
parent 1778 4d4a119f1340
child 1780 1b7b2e1ea829
LuaGameplay: Move GetRandom to bottom
LuaGameplay.wiki
--- a/LuaGameplay.wiki	Wed Apr 17 13:28:11 2019 +0100
+++ b/LuaGameplay.wiki	Wed Apr 17 13:29:48 2019 +0100
@@ -340,10 +340,6 @@
 
 On success, returns the `gtSwitcher` gear being spawned or, if hog switching mode is already active, returns the exsting gear. On failure, returns `nil`.
 
-== Randomness ==
-=== <tt>!GetRandom(number)</tt> ===
-Returns a randomly generated number in the range of 0 to 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`.
-
 == Clans and teams ==
 === <tt>!AddTeam(teamname, color, grave, fort, voicepack, flag)</tt> ===
 
@@ -446,3 +442,6 @@
 === <tt>!GetMissionVar(varname)</tt> (0.9.25) ===
 Returns the value of the mission variable `varname` as a string. See also `SaveMissionVar`.
 
+== Randomness ==
+=== <tt>!GetRandom(number)</tt> ===
+Returns a randomly generated number in the range of 0 to 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`.