Jump to content
Sign in to follow this  
madflame991

Random issue

Recommended Posts

madflame991

Random(1,1) returns 0 as well as any Random($x,$x) or Random($x,$x,1)

In the help file it says:

The result will be in the range of Min to Max INCLUSIVE when using integers (just short of Max when using floats).

but it doesn't... Is Random supposed to act like this? Am I wrong when choosing between one number and the same number the number itself?

Share this post


Link to post
Share on other sites
Valuater

it is an error returning

$result = Random(1,1) 

MsgBox(0x0, $result, @error)

see help

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×