An object that defines a range for random number generation. Contains min and max properties.
min
max
const randomDelay: RandomBetweenTwoConstants = { min: 0.5, max: 2 }; // Random delay between 0.5 and 2 seconds. Copy
const randomDelay: RandomBetweenTwoConstants = { min: 0.5, max: 2 }; // Random delay between 0.5 and 2 seconds.
Optional
The maximum value for the random range.
The minimum value for the random range.
An object that defines a range for random number generation. Contains
min
andmax
properties.Example