pezo89 Posted April 23, 2009 Share Posted April 23, 2009 Is there a way to have a random timer on a mouseclick, so it isent a set sleep time only?.. Link to comment Share on other sites More sharing options...
Skruge Posted April 24, 2009 Share Posted April 24, 2009 Take a look at the Random() Function. [font="Tahoma"]"Tougher than the toughies and smarter than the smarties"[/font] Link to comment Share on other sites More sharing options...
DrKovra Posted April 24, 2009 Share Posted April 24, 2009 This set of statements ... Sleeps the program for a period of time in seconds between $minSEC and $maxSEC .... Sleep(Random($minSEC,$maxSEC,1)) [s][font="Impact"]░▒▓▓►DrKovra◄▓▓▒░[/font][/s]The only thing I [sup]know [/sup]is that I don't know [sub]nothing[/sub]--------------- __________------------------------------ __________--------------- Link to comment Share on other sites More sharing options...
Mike23 Posted April 24, 2009 Share Posted April 24, 2009 (edited) This set of statements ... Sleeps the program for a period of time in seconds between $minSEC and $maxSEC .... Sleep(Random($minSEC,$maxSEC,1)) the SEC are miliSEC so 1000 = 1 second example Sleep(random(750,2000)) wil generate a random sleep between 0.75 Seconds and 2 Seconds. Edited April 24, 2009 by Mike23 Link to comment Share on other sites More sharing options...
DrKovra Posted April 24, 2009 Share Posted April 24, 2009 Don't forget the "1" in ... Random($minSEC,$maxSEC,1)) It tells the random function to return an integer value ! [s][font="Impact"]░▒▓▓►DrKovra◄▓▓▒░[/font][/s]The only thing I [sup]know [/sup]is that I don't know [sub]nothing[/sub]--------------- __________------------------------------ __________--------------- 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