Jump to content

about random


Recommended Posts

1.check this out

$s = random(10, 15)
sleep($s)
sleep(?)

So how i can put the second sleep in same sleep time as the first one? Like if the first is 13, the second would be 13 too?

2. How can you put random offset in mouse clicks?

Thanks.

Link to comment
Share on other sites

1.check this out

$s = random(10, 15)
sleep($s)
sleep(?)

So how i can put the second sleep in same sleep time as the first one? Like if the first is 13, the second would be 13 too?

2. How can you put random offset in mouse clicks?

Thanks.

1.) Unless I totally missed what you are asking:

$s = random(10, 15)
sleep($s)
sleep($s)

2.) MouseClickDelay(Random(#, #)) should work.. try it out and let me know.

Link to comment
Share on other sites

$s = random(10, 15)
sleep($s)
sleep($s)

With this code you are:

1) Declaring a variable named '$s'

2) Finding a Random number between 10-15 miliseconds

3) Assigning the value of the Random number to the $s variable

4) Sleeping for a amount of time based on the value found in the '$s' variable

5) AGAIN sleeping for a amount of time based on the value found in the '$s' variable

**Note: '$s' does not change unless you reassign the value in the variable.

Hope this helps.. :)

Edited by Shalm
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...