<?
$satir = file("dosya.txt");
echo $satir[rand(0, sizeof($satir)-1)];
?>

deneyiniz.. rasgele bi satırı çeker