const randRange = ( min , max ) : number => Math . floor ( Math . random ( ) * ( max - min + 1 ) ) + min ; const fullJitter = ( retries ) : number => randRange ( 0 , Math . min ( 100 , 2 * 2 ** retries ) ) ; export default fullJitter ;