Advertisement
illpastethat

Word Scramble

Jun 5th, 2011
364
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.54 KB | None | 0 0
  1. alias wordscramble {
  2.   unset %scramble.*
  3.   set %scramble.string $1-
  4.   set %scramble.wordcount $numtok(%scramble.string,32)
  5.   if (%scramble.wordcount > 1) {
  6.     while (%scramble.wordcount >= 1) {
  7.       tokenize 32 %scramble.string
  8.       set %scramble.rword $($+($,$r(1,%scramble.wordcount)),2)
  9.       set %scramble.rstring %scramble.rstring %scramble.rword
  10.       set %scramble.string $removecs(%scramble.string,%scramble.rword)
  11.       dec %scramble.wordcount
  12.     }
  13.     echo -a %scramble.rstring
  14.   }
  15.   else {
  16.     echo -a %scramble.string
  17.   }  
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement