BlueScreen Posted March 4, 2004 Share Posted March 4, 2004 Why does $res=Random (0,0) returns 1 ? Link to comment Share on other sites More sharing options...
Valik Posted March 4, 2004 Share Posted March 4, 2004 (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 March 4, 2004 by Valik Link to comment Share on other sites More sharing options...
BlueScreen Posted March 4, 2004 Author Share Posted March 4, 2004 10x, Dude... Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now