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
B
blk
blk
B
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
V
vexed
vexed
V
$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
B
blk
blk
B
ty
Copy Link to Clipboard
Re: random problem
#
142632
18/02/06
06:46 PM
S
Suntop
Suntop
S
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
V
vexed
vexed
V
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
Forum Rules
·
Mark All Read
Contact Us
·
Help
·
mIRC Homepage