private function ShowRandomImage($dir) { $image_list = scandir($dir); return $dir . '/' . $image_list[mt_rand(2, count($image_list) - 1)]; }