title: Setting timer for a javascript randomizer
body: <p>The randomizer works, but looking for a way to get it to loop using the setInterval so it can continuously run in its own div on a website.</p>
  
  <pre><code>&lt;script language="JavaScript"&gt;
  setInterval(quotes(), 3000);
  function quotes(i) {
      var r_text = new Array();
      r_text[0] = "All the leaves are brown";
      r_text[1] = "And the sky is grey";
      r_text[2] = "I've been for a walk";
      r_text[3] = "On a winter's day";
      r_text[4] = "I'd be safe and warm";
      r_text[5] = "If I was in L.A.";
      r_text[6] = "California dreaming, On such a winter's day";
      var i = Math.floor(7 * Math.random())
      document.write(r_text[i]);
  }
  &lt;/script&gt;
  </code></pre>