So I am essentially attempting to script a bot so every 5 minutes it displays a random fact from a textfile.

I achieved that with:

on me:*:join:#:{
.timerfacts 0 $rand(240,300) msg $chan $!read(facts.txt,n)
}

however often times it will repeat the same fact within a 15 minute time period (by pure luck of course) but I am wondering if there is a way to set it up so that it will not repeat a line until all of the lines from the file have been read.

http://www.mirc.org/mishbox/tutorials/readworepeat.htm
I saw that mIRC has a topic about this but after copying the code everytime i try to call the alias it gives me an unknown command error and nothing will display.

I'm quite new to the mIRC language and still dont fully understand its complexities any help would be appreciated.