Garry's Mod Wiki

Revision Difference

math.randomseed#511516

<function name="randomseed" parent="math" type="libraryfunc">⤶ <description>⤶ Seeds the random number generator. The same seed will guarantee the same sequence of numbers each time with <page>math.random</page>.⤶ ⤶ For shared random values across predicted realms, use <page>util.SharedRandom</page>.⤶ ⤶ <warning>Incorrect usage of this function will affect `all` random numbers in the game.</warning>⤶ </description>⤶ <realm>Shared and Menu</realm>⤶ <args>⤶ <arg name="seed" type="number">The new seed</arg>⤶ </args>⤶ </function>⤶ ⤶