madflame991 0 Report post 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 Share this post Link to post Share on other sites
cppman 1 Report post Posted November 2, 2008 http://www.autoitscript.com/forum/index.php?showtopic=72806 Miva OS Project Share this post Link to post Share on other sites
Valuater 107 Report post Posted November 2, 2008 it is an error returning $result = Random(1,1) MsgBox(0x0, $result, @error) see help 8) Share this post Link to post Share on other sites