Skip to main content

Random Integer

An expression editor function that generates a random whole number within a range.

Updated over 3 weeks ago

Overview

This function returns a random integer between the two values.

Note: the value can include endpoints.


Parameters

randomInt(number1, number2)

Number 1

The minimum integer value (inclusive).

Number 2

The maximum integer value (inclusive).


For example...

randomInt(1, 10)

Returns a random integer between 1 and 10 (e.g., 7).

Did this answer your question?