Vindicator209 Posted September 10, 2006 Share Posted September 10, 2006 I need a solid number, and when ever i use a random, it some up with like 9 digits after the decimal, how do i stop this, can i put some flag on it??? [center]"When you look at old, classic games like Snake, you often put it off because it's such a simple game, but it's only when you actually try and create your own unique game from scratch, do you finally appreciate those games."[/center][center]Don't ask for answers if you haven't TRIED yet![/center][center]Most answers can be answered in the help file! Use it![/center] Link to comment Share on other sites More sharing options...
Vindicator209 Posted September 10, 2006 Author Share Posted September 10, 2006 (edited) and also, how can you clear an already written registry?... Edited September 10, 2006 by MethodZero [center]"When you look at old, classic games like Snake, you often put it off because it's such a simple game, but it's only when you actually try and create your own unique game from scratch, do you finally appreciate those games."[/center][center]Don't ask for answers if you haven't TRIED yet![/center][center]Most answers can be answered in the help file! Use it![/center] Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted September 10, 2006 Moderators Share Posted September 10, 2006 I need a solid number, and when ever i use a random, it some up with like 9 digits after the decimal, how do i stop this, can i put some flag on it???Hmmm... "some kind of flag on it" Random(1, 10, iFlag) ?Random(1, 10, 1)? Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
cppman Posted September 10, 2006 Share Posted September 10, 2006 There are 2 ways to do the random number: $nRand = Random(0, 10, 1) ;picks a number 0 - 10 $nRandom = Random(0, 10) ;picks a number 0.0 - 10.0 for the registry: look in the help file under: RegRead() RegDelete() RegWrite() Miva OS Project 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