in options messages quit message
put in $quitmsg
in aliases create an alias:
/quitmsg return $read quitmsg.txt
run notepad and make a file called quitmsg.txt
save that file into the main mIRC folder
add quit messages to that file
when you quit mIRC will randomly select a line from that file to use as your quit message