Discussion in 'Tutorials, Questions and Answers' started by n0mad, Oct 25, 2013.

  1. n0mad

    n0mad Member

    Messages:
    10
    I've got a script with a wait timer

    Code (Text):
    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
  2. rogeruk

    rogeruk Member

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

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

Share This Page