title: Generate random shades of green
body: <p>I'm tying to do a generator of shades of green, the problem is... the green can't be too much dark nor too much bright. I made/tried the bellow code, but I can't seen to find a way to avoid almost black green and almost white green.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$(document).ready(function () {
      setInterval(function () {
          var a = Math.random() * 254;
          var b = Math.floor(a / 8) * 8;
          $(".greybox").css("background-color", "rgb(0," + b + ",0)");
      }, 500);
  });</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.greybox {
      height:200px;
      width:200px;
      background:green;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;div class="greybox"&gt;this is grey box&lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>