Home
About
Download
Register
News
Help
Register
Log In
Forums
Scripts & Popups
$rand
Forums
Active Threads
Search
Who's Online
Help
Print Thread
$rand
#
36692
16/07/03
01:41 PM
C
captain_obvious
captain_obvious
C
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?
Copy Link to Clipboard
Re: $rand
#
36693
16/07/03
01:43 PM
P
pheonix
pheonix
P
but both numbers in a text file and use $read(yourtext.txt)
Copy Link to Clipboard
Re: $rand
#
36694
16/07/03
01:46 PM
C
captain_obvious
captain_obvious
C
wow, thickheaded me... thanks.
Copy Link to Clipboard
Re: $rand
#
36695
16/07/03
02:02 PM
S
ScatMan
ScatMan
S
or $gettok(NUM1 NUM2,$r(1,2),32)
Copy Link to Clipboard
Re: $rand
#
36696
16/07/03
02:05 PM
Joined:
Dec 2002
Posts: 191
Australia
N
Nobodi
Vogon poet
Nobodi
Vogon poet
N
Joined:
Dec 2002
Posts: 191
Australia
$iif($r(0,1),color1,color2)
Copy Link to Clipboard
Hop To
News and Discussions ------
Latest News
General Discussion
Support ------
mIRC Help
Connection Issues
Scripts & Popups
Development ------
Feature Suggestions
Developers
Bug Reports
Print Thread
Switch to Threaded Mode
Show Likes
Link Copied to Clipboard
View Profile
Private Message
Follow User
Forum Posts
Forum Rules
·
Mark All Read
Contact Us
·
Help
·
mIRC Homepage