Skip to content

randomDelay

randomDelay(min, max): number

Defined in: utils/timing.ts:45

Generate a random delay within a range.

number

Minimum delay in milliseconds

number

Maximum delay in milliseconds

number

Random integer between min and max (inclusive)

const delay = randomDelay(50, 150); // e.g., 87