random_use_old_version

Use the deprecated random number generator or the regular one.

Syntax:

GML Code Example

random_use_old_version(flag);


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


Returns: Real


Description

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.


Example:

GML Code Example

random_use_old_version(true);
 

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