Falling Posted May 17, 2004 Share Posted May 17, 2004 I do Random (2000,2005) but then i get random numbers that are both less then the Min (2000), and Greater then the Max(2005). So I guess i'm useing this function incorrectly. Anyone use this one before? I'm trying to get random numbers form 2000, to 2005 only. so: 2000,2001,2002,2003,2004,2005 should be the only possible choices. Link to comment Share on other sites More sharing options...
emmanuel Posted May 17, 2004 Share Posted May 17, 2004 well, looking at the helpfile for random, looks like this'd be a way of doing it:MsgBox(0,"random year","in the year " & Int (random(2000,2005)));Roll of a diemsgBox(0,"Roll of die", "You rolled a " & Int(Random(6)+1)) "I'm not even supposed to be here today!" -Dante (Hicks) Link to comment Share on other sites More sharing options...
CyberSlug Posted May 17, 2004 Share Posted May 17, 2004 Try$x = Int( Random(1999, 2005) + 1 )MsgBox(0,"Random:", $x)It that doesn't work, then there might be a bug in whatever version of AutoIt you are using. Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
Falling Posted May 17, 2004 Author Share Posted May 17, 2004 Random ( [[Min ,] Max] ) heh thats what i read then i tried it. I guess i should read the whole file before posting here ;-0 instead of the first line. anyway thanks you guys are good. 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