math.randomseed

From Garry's Mod
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