You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
drewmccluskey edited this page Dec 31, 2018
·
3 revisions
random_get_seed
Returns current seed
Syntax:
random_get_seed()
Returns:int
Description:
The seed produces a specific series of random events. When you want to create something random and want the same generation in the future or to share it with another connection, you can use the seed number.
Example:
intcurrentSeed=random_get_seed();
This code will set variable currentSeed to the current game seed.