mIRC doesn't have a for loop...

It's probably a good way to get yourself flooded off, deopped, banned or K-lined, but suit yourself...
I also added some error checking and prevented choosing yourself as random target smile

Code:
; kick 3 random people in current channel: /randomkick 3
; kick 2 random people in given channel: /randomkick 2 #channelnamealias randomkick {
  var %i = $$iif($1 isnum 1-5,$1), %c = $$iif($2 ischan,$2,$chan)
  while ((%i) && ($nick(%c,0) > 1)) {
    if ($nick(%c,$rand(1,$v2)) == $me) continue
    kick %c $v1
    dec %i
  }
}


edit: ok apparently I type too slow, 3 replies during the time I type mine frown

Last edited by Kelder; 07/09/05 11:11 PM.