title: JS, random Height
body: <p>I want that my script add <code>72</code> small items, at the end it should look like an audio track. Each item should have another height from <code>30-90px</code> but everyone has the same height. I can't find my issue.. Thanks for your answers.</p>
  
  <pre><code>function frequencyContent() {
      var i = 0;
      while (i &lt; 72) {
          $('.freqInner').append('&lt;div class="frequencyItem"&gt;&lt;/div&gt;');
          i++;
      };
      $('.frequencyItem').each(function() {
          h = Math.floor(Math.random() * 60) + 30;
          $('.frequencyItem').css("height", h);
      });
  };
  </code></pre>