Garry's Mod Wiki


void math.randomseed( number seed )


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.


1 number seed
The new seed

Page Links

Special Pages



Render Time: 29ms

Session 0
DB GetPage 5
Generate Html 1
SaveChanges 8
Render Body 0
Render Sidebar 13