Sign in to follow this  
Followers 0
BlueScreen

Random (0,0)

3 posts in this topic

Why does $res=Random (0,0) returns 1 ? :whistle:

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Failure: Returns numeric 1 and sets @error flag:

1 if argument is an array or non-numeric string

2 if Min > Max

Its failing and that is the return value for failure.

Edit: Check @error after calling Random(0,0) if you feel the need to confirm that it is failing.

Edited by Valik

Share this post


Link to post
Share on other sites

10x, Dude... :whistle:

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  
Followers 0