Garry's Mod Wiki

math.randomseed

  math.randomseed( number seed )

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.

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

Arguments

1 number seed
The new seed