title: SetInterval within jQuery .each()
body: <p>I am looking to iterate over a group of divs and perform some random actions at random times.  I am attempting to use the following function but <code>console.log</code> returns the same object and integer on every iteration.  What would be the proper way to perform the following?</p>
  
  <pre><code>    $('.cloud').each(function() {
      $cloud = $(this);
      ranNum = Math.floor(Math.random() * 5000);
      setInterval(function() {
          setTimeout("console.log($cloud + ranNum)", ranNum)
      })
  })          
  </code></pre>