Rob Posted April 14, 2004 Share Posted April 14, 2004 I have a portion of a script where a sleep number is entered (30000 for example) and used multiple times. I'm wanting this sleep number to be different by no more than 5000 higher than the number entered each time without having to manually stick in numbers in to the script. Is there a fuction that will allow me to do this? It would just allow for more convinience than having to put sleep(30000) ... ... sleep(32500) etc... manually into the script. I may be a little ambiguous in what I'm trying to get across. Link to comment Share on other sites More sharing options...
Developers Jos Posted April 14, 2004 Developers Share Posted April 14, 2004 Sleep(30000 + Random() * 5000) 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...
Rob Posted April 14, 2004 Author Share Posted April 14, 2004 Thank you very much. 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