private function getRandomGif($dir)
    {
        $imageIndex = mt_rand(0, \count($this->gifs[$dir]) - 1);

        return $this->gifs[$dir][$imageIndex];
    }
private function getRandomGif($dir)
    {
        $imageIndex = mt_rand(0, \count($this->gifs[$dir]) - 1);

        return $this->gifs[$dir][$imageIndex];
    }
private function getRandomGif ( $ dir ) { $ imageIndex = mt_rand ( 0 , \ count ( $ this -> gifs [ $ dir ] ) - 1 ) ; return $ this -> gifs [ $ dir ] [ $ imageIndex ] ; }
Return a random gif name for the given directory.

@param string $dir

@return string
Return a random gif name for the given directory .