mIRC Home    About    Download    Register    News    Help

Print Thread
#36692 16/07/03 01:41 PM
Joined: Jul 2003
Posts: 47
C
Ameglian cow
OP Offline
Ameglian cow
C
Joined: Jul 2003
Posts: 47
I know how $rand process, v1, v2 and it chooses random for instance ctrl + K $+ $rand(1,15) would return a random color and what have you not, but what if i just wanted to pick between 2 colors, and still have it be random?


"watch the news today, so you don't have to watch the history channel tomorrow."
#36693 16/07/03 01:43 PM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
but both numbers in a text file and use $read(yourtext.txt) grin


new username: tidy_trax
#36694 16/07/03 01:46 PM
Joined: Jul 2003
Posts: 47
C
Ameglian cow
OP Offline
Ameglian cow
C
Joined: Jul 2003
Posts: 47
wow, thickheaded me... thanks.


"watch the news today, so you don't have to watch the history channel tomorrow."
#36695 16/07/03 02:02 PM
Joined: May 2003
Posts: 730
S
Hoopy frood
Offline
Hoopy frood
S
Joined: May 2003
Posts: 730
or $gettok(NUM1 NUM2,$r(1,2),32)

#36696 16/07/03 02:05 PM
Joined: Dec 2002
Posts: 191
N
Vogon poet
Offline
Vogon poet
N
Joined: Dec 2002
Posts: 191
$iif($r(0,1),color1,color2)


Link Copied to Clipboard