Home
About
Download
Register
News
Help
Register
Log In
Forums
Scripts & Popups
getting randnum w/ decimals...
Forums
Active Threads
Search
Who's Online
Help
Print Thread
getting randnum w/ decimals...
#
250575
22/01/15
08:55 AM
Joined:
Sep 2014
Posts: 83
H
HappyFappy
OP
Babel fish
OP
HappyFappy
Babel fish
H
Joined:
Sep 2014
Posts: 83
i wanna use
Code:
var %num = %rand(0.5,3)
bit I need decimals as well for results
like 1.6 or 2.1 or 0.8 etc
Copy Link to Clipboard
Re: getting randnum w/ decimals...
HappyFappy
#
250577
22/01/15
09:35 AM
Joined:
Jun 2014
Posts: 248
B
Belhifet
Fjord artisan
Belhifet
Fjord artisan
B
Joined:
Jun 2014
Posts: 248
var %num $calc(%rand(0,2) + ($rand(0,10) / 10))
or
var %num $calc(%rand(0,30) / 10)
Last edited by Belhifet;
22/01/15
09:37 AM
.
Copy Link to Clipboard
Re: getting randnum w/ decimals...
Belhifet
#
250579
22/01/15
09:56 AM
Joined:
Sep 2014
Posts: 83
H
HappyFappy
OP
Babel fish
OP
HappyFappy
Babel fish
H
Joined:
Sep 2014
Posts: 83
it just keeps coming back as 0
Copy Link to Clipboard
Re: getting randnum w/ decimals...
HappyFappy
#
250582
22/01/15
10:35 AM
Joined:
Jun 2014
Posts: 248
B
Belhifet
Fjord artisan
Belhifet
Fjord artisan
B
Joined:
Jun 2014
Posts: 248
var %num $calc($rand(0,2) + ($rand(0,10) / 10))
or
var %num $calc($rand(0,30) / 10)
whoops, copied your original post
Last edited by Belhifet;
22/01/15
10:35 AM
.
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
Forum Rules
·
Mark All Read
Contact Us
·
Help
·
mIRC Homepage