I'm very new to mIRC scripting. I've been searching around for something similar and haven't had any luck so far.

I'd like a script that'll return a random item from a list. i.e. !pick a, b, c, d, and it responds with a, b, c, or d, randomly. I've gotten to:

On *:TEXT:!pick *:#: {

And there I get stuck. I thought I should be using $gettok, but I can't seem to make that work. Ideally it would accept multi-word items that are separated by a comma. Could anyone help me out or point me in the right direction?