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

Page Links


Special Pages


Wikis

?

Render Time: 32ms

DB GetPage 3
Generate Html 2
SaveChanges (1) 12
Render Body 0
Render Sidebar 11