Elaborate on GetRandom
authorkyberneticist
Sun, 05 Dec 2010 03:40:20 +0000
changeset 43 c07e89eded71
parent 42 565e15a60043
child 44 bf53e635a2ac
Elaborate on GetRandom
LuaAPI.wiki
--- a/LuaAPI.wiki	Sat Dec 04 23:16:21 2010 +0000
+++ b/LuaAPI.wiki	Sun Dec 05 03:40:20 2010 +0000
@@ -326,7 +326,7 @@
 
 === <tt>!GetRandom(number)</tt> (0.9.14) ===
 
-<blockquote>Returns a randomly generated number in the range of 0 to number - 1. 
+<blockquote>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 can use the Lua random, but adding a regular gear should use GetRandom.
 </blockquote>
 
 === <tt>!SetWind(windSpeed)</tt> (development) ===