Vindicator209 Posted September 10, 2006 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]
Vindicator209 Posted September 10, 2006 Author 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]
Moderators SmOke_N Posted September 10, 2006 Moderators 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.
cppman Posted September 10, 2006 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
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