'setinterval' with random time in JavaScript
<p>I have this setinterval with function alert:</p>
<pre><code>setInterval(function(){
    alert('oo');
}, 5000);
</code></pre>
<p>But I would like to change my (5000) interval each time interval runs alert() - I'd like have it randomly selected between 5 - 10 seconds. How can I do it?</p>