Skip to content

intBetween

intBetween(min, max, includeMax): number

Defined in: utils/random.ts:49

Find an integer between two numbers, inclusive of min and optionally inclusive of max.

number

The minimum value (inclusive)

number

The maximum value (exclusive by default)

boolean = false

Whether the max value should be inclusive (default: false)

number

number