math.randomseed

From Garry's Mod
Revision as of 14:35, 5 September 2017 by Robotboy655 (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 math.randomseed( )

Description

Seeds the random number generator. The same seed will guarantee the same sequence of numbers each time with math.random.

For shared random values across predicted realms, use util.SharedRandom.

WARNING

Incorrect usage of this function will affect all random numbers in the game.

Arguments

number seed

The new seed
Personal tools
Navigation