Use the deprecated random number generator or the regular one.


GML Code Example


Argument Description
flag Use the deprecated seed generator (true) or the regular one (false).

Returns: Real


The GameMaker: Studio random number generation was improved and the previous generator deprecated from use. However if you have a game that requires seeds generated from the old generator, then you will need to use this function to switch the regular generator off and use the deprecated version instead.


GML Code Example


The above code will set the random number generator to use the deprecated version.

No Examples Submitted

Does this page need better examples? Be the first to Submit

No Edits Suggested

Is this page unclear or not descriptive enough? Suggest an edit to the page and with enough upvotes your changes will be made.

No Questions Have Been Ask

Do you have a question about this page? Ask it Here