Depending on the number of responses you want, there are a couple of ways to do this. For only a few different responses, you can do:

Code:
var %responses = response number 1|response number 2|response number 3
msg $nick $gettok(%responses,$r(1,$numtok(%responses,124)),124)


You fill the variable with all of your responses. Separate the responses with a character you won't have in the responses. I just used |, but you can use almost anything you want as long as it's not going to be in the responses.

Then, the message line does the follow. It will choose a random numer ($r) from 1 to the total number of tokens (responses) in the variable ($numtok to get total tokens). It will then display the response token that matches that random number ($gettok gets the token). And 124 is the $chr() value for the | character... so if you use another character, you would change that value to match.

Useful info:
/help $gettok
/help $numtok
/help $rand

* $r is shorthand for $rand


If you have a large number of different responses, then you would be better off using a text file. Fill the text file with responses (one response per line). Then, use:

Code:
msg $nick $read(responses.txt,nt)


That will $read a random line from a text file named responses.txt.

Of course, you can use the text file for few responses or the variable for many if you want. smile