random

Modified on Tue, 22 Aug 2023

Description

Generate a random number within a specified range

Syntax

random(min, max)

Parameters

Input ParameterTypeDescription
minnumberThe lower bound of the random number range
maxnumberThe upper bound of the random number range

Return value

Type
number

Sample

ExampleResultDescription
random(1, 100)73Returns a random number between 1 and 100

To view all the Math and Number functions, click here.