Hmmm... for some reason this isnt working... works some times, but sometimes it doesnt...
check it out:
alias triviaq {
if (!%:trivia) || (!%:trivia.f) halt
var %f = $gettok(%:trivia.f,$rand(1, [ $calc(%:trivia.f +1) ] ),160),%l = $rand(1, [ $lines(%f) ] )
if (%l) set %:trivia.cq %l
else halt
echo -a $gettok($read(%f,n,%l),1,160)
}
%:trivia.f is a list of files seperated by $chr(160)
All of the files listed in the variable do not have blank spaces, but for some reason %l isnt set some times..
I added the [ ] just to see if it would help, it didnt.