jimmer Posted January 16, 2005 Share Posted January 16, 2005 Alright... I don't quite understand what the Help file is trying to tell me... If Random() < 0.33 Does that mean there is a 33% chance to perform the second command? If Random() < 0.33 Then ;First command Else ;Second command Endif Also... how would I add a Third "possible" command? Link to comment Share on other sites More sharing options...
layer Posted January 16, 2005 Share Posted January 16, 2005 its all just hit and miss, is what it's doing is making a random number and saying that if the random number us less then 0.33 then run the first command, or else, if it's something else(IE: greater then) then run the second command, get it? FootbaG Link to comment Share on other sites More sharing options...
Developers Jos Posted January 16, 2005 Developers Share Posted January 16, 2005 random() will return a randow number between 0 and 1 .. Code with 3 options: $a = Random() If $a < 0.33 Then ;First command ElseIf $a < 0.66 Then ;Second command Else ;Third command Endif SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
jimmer Posted January 16, 2005 Author Share Posted January 16, 2005 alright... thanks! =) Link to comment Share on other sites More sharing options...
layer Posted January 16, 2005 Share Posted January 16, 2005 why do i even bother FootbaG Link to comment Share on other sites More sharing options...
Developers Jos Posted January 17, 2005 Developers Share Posted January 17, 2005 why do i even bother <{POST_SNAPBACK}>because you care.. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. 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