title: Random Color Generator with Hue/Saturation and more controls
body: <p>In <a href="https://stackoverflow.com/questions/1484506/random-color-generator-in-javascript">this question</a> I found a lot of interesting functions to generate random colors. </p>
  
  <p>I need a random color generator that accept <strong><em>Hue</em></strong>, <strong><em>Saturation</em></strong> and <strong><em>Darkness</em></strong> range and also number of colors that we need. </p>
  
  <p>Actually I can write a random color generator but I don't have good understanding of relationship between color numbers and <em>darkness</em>, <em>hue</em> and <em>saturation</em> of a color. I want the function export colors in an array.</p>
  
  <p>I also made a <a href="http://jsfiddle.net/5V8mV/" rel="nofollow noreferrer">jsfiddle file here</a> for testing:</p>
  
  <pre><code>function get_random_color() {
      var letters = '0123456789ABCDEF'.split('');
      var color = '#';
      for (var i = 0; i &lt; 6; i++ ) {
          color += letters[Math.round(Math.random() * 15)];
      }
      return color;
  }
  $.each($('div'),function(){
      $(this).css('background-color', get_random_color());
  });
  </code></pre>
  
  <p>Thanks</p>