Gameplay::getRandomIntInRange2: Revision history

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

29 April 2024

  • curprev 10:0710:07, 29 April 2024Shr0x talk contribs 638 bytes +638 Created page with "{{ClientsideJsFunction}} {{JSContainer| Gets a random number (mwc rng) from the range passed in. ===Required Values=== *'''min:''' {{RageType|number}} *'''max:''' {{RageType|number}} ===Return value=== *''' {{RageType|number}} ''' ==Syntax== <syntaxhighlight lang="javascript"> mp.game.gameplay.getRandomIntInRange2(min, max); </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> const randomNumber = mp.game.gameplay.getRandomIntInRange2(0, 9999); mp.conso..."