title: Selecting link from preselected links and go to choosen link once
body: <p>I want to do something like; visit all the links only once, when all links have been visited delete the data of visited links and start from beginning to count visited links.</p>
  
  <p>This code works great but sometimes same links coming consecutively.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var urls=["http://randomemes.com/links/apotatoflewaround.html",
  "youtube.com",
  "yandex.com",
  "google.com",
  
  ];
  function goSomewhere() {
  var e=Math.floor(Math.random()*urls.length);
  window.location=urls[e],
  urls.splice(e, 1)
  }
  
  &lt;!-- begin snippet: js hide: false console: true babel: false --&gt;</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;input class="start" type="button" onClick="goSomewhere(); return ;" alt="Submit" width="800" height="100"value="»» Bring Memes ««"&gt;</code></pre>
  </div>
  </div>
  </p>