utils.random.inRange¶
utils.random.inRange(min, max)
Arguments¶
Argument | Data Type | Optional | Default Value | Explanation |
---|---|---|---|---|
min | int | No | - | Minimum number |
max | int | No | - | Maximum number |
Dependency¶
local utils = M("utils")
Example¶
local range = utils.random.inRange(1, 10)
print(range) -- Returns a number between 1 and 10