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
Tania Shatilova edited this page Nov 10, 2015
·
1 revision
The getRandomInt() method returns a random number within a specified range.
Syntax
varrandom=Mint.utils.getRandomInt([min[,max]]);
Parameters
min - (int, optional) The inclusive lower bound of the random number returned. Default value is 0.
max - (int, optional) The exclusive upper bound of the random number returned. Max must be greater than or equal to min. Default value is Number.MAX_VALUE.
Return Value
A signed integer greater than or equal to min and less or equal than max; that is, the range of return values includes min and max. If min equals max, min is returned.