LuaRules.wiki
changeset 2268 3befe2d2bf3b
parent 2267 bbc87ef05898
equal deleted inserted replaced
2267:bbc87ef05898 2268:3befe2d2bf3b
    11  * If you want to divide by a different integer value, use the `div` function for integer division
    11  * If you want to divide by a different integer value, use the `div` function for integer division
    12  * Keep your numbers within ±2<sup>53</sup>
    12  * Keep your numbers within ±2<sup>53</sup>
    13  * Avoid `math.floor` and `math.ceil`
    13  * Avoid `math.floor` and `math.ceil`
    14  * Don’t use `math.random`, use `GetRandom` instead
    14  * Don’t use `math.random`, use `GetRandom` instead
    15 
    15 
    16 These restrictions on numbers don’t apply to numbers that you don't use for gameplay but for stuff like harmless eye candy. For example, you *can* use `math.random` safely as long you don’t use the generated numbers for anything that affects gameplay.
    16 These restrictions on numbers don’t apply to numbers that you don't use for gameplay but for stuff like harmless eye candy. For example, you _can_ use `math.random` safely as long you don’t use the generated numbers for anything that affects gameplay.
    17 
    17 
    18 Failing to follow these rules might lead your script to behave differently on different systems, leading to desynchronization bugs, which means they will not work online.
    18 Failing to follow these rules might lead your script to behave differently on different systems, leading to desynchronization bugs, which means they will not work online.