$files = array("file1.txt", "file2.txt", "file3.txt"); //create an array that contains your file names
$chosenFile = rand(0, count($files) - 1); //randomly select the index of a file from the array
$fp = fopen($files[$chosenFile]; //open the randomly chosen file
Untested, but should do the trick