$afiles=file("lista.txt"); $n = count($afiles); $strona=trim($afiles[rand(1,$n)]); echo '$strona'; ?>