Heilos commented on a Page, Random colors  -  May 28, 2005

Wouldnt it be easier to use something like:

on :INPUT::{
if ($1 == !off) { %text = off | echo Text formatting is off | halt }
if ($1 == !random) { %text = rand | echo Text color is now random | halt }
if ((%text == rand) && (/ !iswm $1) && (! !iswm $1)) { say $random($1-) | halt }
}
alias random {
var %i = $len($1),%o
while (%i) {
%o = $+(,$gettok(02 03 04 05 06 07 10 12 13 14,$r(1,10),32),$mid($1,%i,1),%o)
dec %i
}
return %o
}

That way the user can edit the colors used by changing:
$gettok(02 03 04 05 06 07 10 12 13 14,$r(1,10),32)

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.