madflame991 Posted November 2, 2008 Share Posted November 2, 2008 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? Game Game Gadget! - read about indie games, gadgets, chiptunes and demoscenesAssembly-like language interpreter and custom machine emulatorSuper Mario Screen Mate - official website or autoit forum pageCogut - Puzzle Game + Editor like sokoban and others Link to comment Share on other sites More sharing options...
cppman Posted November 2, 2008 Share Posted November 2, 2008 http://www.autoitscript.com/forum/index.php?showtopic=72806 Miva OS Project Link to comment Share on other sites More sharing options...
Valuater Posted November 2, 2008 Share Posted November 2, 2008 it is an error returning $result = Random(1,1) MsgBox(0x0, $result, @error) see help 8) 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