srand

Synopsis

srand([number])

seed the random number generator with the specified scalar (interpreted as a long)

Parameters

number - the number to seed the random number generator with.

Examples

srand(0x1337); println("Random: " . rand()); srand(0x1337); println("Random: " . rand());

Random: 0.0732580700418014 Random: 0.0732580700418014

See Also