Using $read can just randomly select a line from the file
ON *:TEXT:!fact:#: msg $chan FACT: $read(file.txt,n)
/help $read