Type Alias RandomBetweenTwoConstants

RandomBetweenTwoConstants: { max?: number; min?: number }

An object that defines a range for random number generation. Contains min and max properties.

Type declaration

  • Optionalmax?: number
  • Optionalmin?: number
const randomDelay: RandomBetweenTwoConstants = { min: 0.5, max: 2 }; // Random delay between 0.5 and 2 seconds.