applyJitter
Applies jitter to a given duration based on a randomization factor.
Example:
Base Delay: 1000ms
Randomization factor: 0.1 (10%)
Then:
Jittered delay: 900ms to 1100ms
Note: Calling this function with a randomization factor of 0 will return the base delay.
Return
The jittered delay duration.
Parameters
baseDelay
The original delay duration.
randomizationFactor
The factor to randomize the delay.