\n"); } function rand_text($dir){ //open a file and put each line into an array and pick randomly from array. } ?>