Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 28th, 2012  |  syntax: mIRC  |  size: 0.52 KB  |  hits: 30  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. on *:text:*^randtest*:#: {
  2.   set %randnum = $rand(1-4)
  3.   if ( %randnum == 1) { msg $chan By randomness, you have chosen %randnum as your random number. (1) }
  4.   elseif ( %randnum == 2) { msg $chan By randomness, you have chosen %randnum as your random number. (2) }
  5.   elseif ( %randnum == 3) { msg $chan By randomness, you have chosen %randnum as your random number. (3) }
  6.   elseif ( %randnum == 4) { msg $chan By randomness, you have chosen %randnum as your random number. (4) }
  7.   else { .msg $chan Error: randomtest.mrc }
  8. }