Random wait

n0mad

Member
I've got a script with a wait timer

Code:
wait 3600

with this line the script pause for 6 minutes and then continue.

Is there a way to tell the script to wait for a random amount of time between a minimum of 6 minutes and a maximum of 10 minutes?

I read the math operator rand but I don't know how to apply it with the wait command.

Thanks in advance for your help.

Bst rgds
 

rogeruk

Member
I've got a script with a wait timer

Code:
wait 3600

with this line the script pause for 6 minutes and then continue.

Is there a way to tell the script to wait for a random amount of time between a minimum of 6 minutes and a maximum of 10 minutes?

I read the math operator rand but I don't know how to apply it with the wait command.

Thanks in advance for your help.

Bst rgds
You can use the Math.Rand
${Math.Rand[6000]:Inc[3600]}

WaitTime:Set[${Math.Rand[6000]:Inc[3600]}]
wait ${WaitTime}
 
Top Bottom