Random Number

Last modified: June 18, 2025

Description

Creates a random Integer using: Math.floor(Math.random() * (max - min)) + min;

Usage

Pass the lower/min and upper/max bound for the generated number, to limit the outcome. You have to define the min(included) and max (excluded).

Input Parameters

NameDatatypeRequiredDescription
MinIntegeryesThe lower bound for the outcome
MaxIntegeryesThe upper bound for the outcome

Return Value

NameDatatypeDescription
Random integerIntegerThe generated random number.