Home
About
Download
Register
News
Help
Register
Log In
Forums
Scripts & Popups
random problem
Forums
Active Threads
Search
Who's Online
Help
Print Thread
random problem
#
142628
18/02/06
06:09 PM
Joined:
Feb 2006
Posts: 95
B
blk
OP
Babel fish
OP
blk
Babel fish
B
Joined:
Feb 2006
Posts: 95
I tried to make a code that when you type !rand <#,#>
you would get back a random number between #,#...
I tried $rand($2), $rand( $2 ), and $rand( $+ $2 $+ )
none work
...
anybody got a solution?
Last edited by blk;
18/02/06
06:10 PM
.
Copy Link to Clipboard
Re: random problem
#
142629
18/02/06
06:18 PM
Joined:
Feb 2006
Posts: 164
V
vexed
Vogon poet
vexed
Vogon poet
V
Joined:
Feb 2006
Posts: 164
$rand(1,99)
Copy Link to Clipboard
Re: random problem
#
142630
18/02/06
06:19 PM
Joined:
Sep 2005
Posts: 2,630
H
hixxy
Hoopy frood
hixxy
Hoopy frood
H
Joined:
Sep 2005
Posts: 2,630
$rand( [ $2 ] )
Copy Link to Clipboard
Re: random problem
#
142631
18/02/06
06:30 PM
Joined:
Feb 2006
Posts: 95
B
blk
OP
Babel fish
OP
blk
Babel fish
B
Joined:
Feb 2006
Posts: 95
ty
Copy Link to Clipboard
Re: random problem
#
142632
18/02/06
06:46 PM
Joined:
Oct 2003
Posts: 9
Evergreen Forest, Abode
S
Suntop
Nutrimatic drinks dispenser
Suntop
Nutrimatic drinks dispenser
S
Joined:
Oct 2003
Posts: 9
Evergreen Forest, Abode
Code:
on *:TEXT:!rand *:#:{ if (!$2) || (!$3) { halt } | msg $chan Random: $r($2,$3) }
Now get someone to type: !rand # #
ex: !rand 1 99 returns a random number between 1 and 99 =)
Copy Link to Clipboard
Re: random problem
#
142633
18/02/06
07:38 PM
Joined:
Feb 2006
Posts: 164
V
vexed
Vogon poet
vexed
Vogon poet
V
Joined:
Feb 2006
Posts: 164
My bad, i read it as i was playing poker.
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
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
Forum Rules
·
Mark All Read
Contact Us
·
Help
·
mIRC Homepage