I don't know if it's possible for you, but it's most certainly possible in mIRC.
Make a dialog with a button, have the dialog read a random line from text into a %var on load, use that %var is button text, have the button click event msg that %var to channel and read a new random line ito it and update the button display.