1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Random wait time iMacros

Discussion in 'HTML & JavaScript' started by euwajama, Oct 7, 2014.

  1. euwajama

    euwajama Newbie

    Joined:
    Sep 30, 2014
    Messages:
    35
    Likes Received:
    1
    Hi,
    I hope someone can help me on how to generate random wait time in iMacros. Basically I need to set it up to wait between 20-30 seconds before executing the next URL GOTO line. I have tried this one that I saw in Google search but it returns the same wait time in the next URL GOTO after the first one. It is random but becomes uniform after the first link. Can someone give me a script to do that or a simple solution to add in
    WAIT SECONDS=20 to make it random between 20 to 30 seconds wait time without setting a !var value? Thanks in advance :)

    This is the piece of code I got in Google search:
    SET !VAR1 EVAL("var randomNumber=Math.floor(Math.random()*10 + 1); randomNumber;")
    URL GOTO=(url of a website)
    ' waits 1 to 10 seconds
    WAIT SECONDS={{!VAR1}}
     
  2. euwajama

    euwajama Newbie

    Joined:
    Sep 30, 2014
    Messages:
    35
    Likes Received:
    1
    mods can delete this thread, i found a way on how to fix my script. :D