Jump to content

random timer


Recommended Posts

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

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 by Mike23
Link to comment
Share on other sites

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...