title: shuffle divs but show limited number of them
body: <p>I'm using this code to shuffle elements of div every n seconds .. is there a way to display only 2 elements (for example ) with each shuffle ?</p>
  
  <pre><code>var parent = $("#shuffle");
  var divs = parent.children().slice();
  
  setInterval(function() {
      var clone = divs.slice(); // &lt;-- clone, since splice modifies array
      while (clone.length) {
          parent.append(clone.splice(Math.floor(Math.random() * clone.length), 1)[0]);
      }
  }, 2000); // &lt;-- shuffle each 2 seconds
  </code></pre>
  
  <p><a href="http://jsfiddle.net/yxBhH/1/" rel="nofollow noreferrer">http://jsfiddle.net/yxBhH/1/</a>
  I'm Interested in Javascript solution</p>