//echo $read(funny.txt)

Reads a random line from the file funny.txt.

ah nevermind i see you have happy and sad in the file using the -s switch is going to scan the file for a line with happy assuming that it prolly scans from top to bottom it will hit the same line each time you might try using the $readn value to exclude that line in the next call ? or simply make more than one .txt file happy.txt sad.txt etc..

Last edited by Cheech; 01/03/03 03:54 PM.