I am not AppleScript literate, so if someone could please help me with this little script I wrote for "ircle", the program I use for IRC
tell application "ircle 3.1 Am. English Carbon"
set ch to currenttarget
set n to numberofusers of ch
set counter to (???)
set u to nickname of user counter of ch
set obj to argstring
if obj = "" then
set obj to "a large trout"
do "/me smacks " & u & " around a bit with " & obj
I want the script to choose a random user. "n" is the number of users in the selected channel. What do I need to set "counter" to if I want a random integer between 1 and "n"?