Your Airkit journey starts here

RANDOM

Return a random number with optional min, max and shouldFloor parameters.

Declaration

RANDOM(min_or_max, max, should_floor) -> random_number

Parameters

min_or_max
number -If the max is present this is the min value. If not this value will be the max value.
max
number -If present this is the maximum.
should_floor
boolean -Boolean to indicate whether the return value should be a real number or an integer.

Return Values

random_number
number -A random number between in the range specified.