Multiple random results in a for loop?
<p>I'm trying to create 64 squares and give each a unique background color. I'm pretty close, but I can only seem to get one random color.</p>

<pre><code>function randomCol() {
    return Math.floor(Math.random()*16777215).toString(16); 
}

$(function(){
  for(i=0; i&lt;64; i++) {
        $('&lt;div class="square"&gt;&lt;/div&gt;').insertAfter(".starter");
        $(".square").css({'background':'#' + randomCol()});
  }
 });
</code></pre>
