public function equalJitter(int $attempt) : int
    {
        $half = ($this->exponential($attempt) / 2);

        return (int) floor($half + $this->random(0.0, $half));
    }
public function equalJitter(int $attempt) : int
    {
        $half = ($this->exponential($attempt) / 2);

        return (int) floor($half + $this->random(0.0, $half));
    }
public function equalJitter ( int $ attempt ) : int { $ half = ( $ this -> exponential ( $ attempt ) / 2 ) ; return ( int ) floor ( $ half + $ this -> random ( 0.0 , $ half ) ) ; }
This method adds a half jitter value to exponential backoff value.

@param int $attempt Attempt number.

@return int
This method adds a half jitter value to exponential backoff value .