# HG changeset patch
# User Wuzzy
# Date 1555504188 -3600
# Node ID 9cb32a3519ee19e37611be76f1df6644c64d71a2
# Parent 4d4a119f134012e62c299b5e896c4be4867b55c3
LuaGameplay: Move GetRandom to bottom
diff -r 4d4a119f1340 -r 9cb32a3519ee 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 ==
-=== !GetRandom(number) ===
-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 ==
=== !AddTeam(teamname, color, grave, fort, voicepack, flag) ===
@@ -446,3 +442,6 @@
=== !GetMissionVar(varname) (0.9.25) ===
Returns the value of the mission variable `varname` as a string. See also `SaveMissionVar`.
+== Randomness ==
+=== !GetRandom(number) ===
+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`.