Skip to content

random_get_seed

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:

int currentSeed = random_get_seed();

This code will set variable currentSeed to the current game seed.

Back to number_functions

Clone this wiki locally