title: Javascript / JQuery - Favor Number Range In Math.random()
body: <hr>
  
  <p><strong>Description:</strong><br>
  I have created a small project that generates random navbar designs. Part of the randomality is the <code>border-radius</code> of the navbar can range from <code>0</code> to <code>100</code>. But once you start going over 5 pixels on the border radius you can really start to see the curvature of the border. 5 out of 100 is very small so 95% of the time there will be a very noticeable curve on the navbar that randomly generates. How can I tone down the 95% without changing the range of <code>0</code> to <code>100</code>? So the navbar has a larger chance to generate with a sharp edge.</p>
  
  <hr>
  
  <p><strong>Code:</strong></p>
  
  <pre><code>var borderRadius = Math.floor(Math.random() * 100) + 0;
  </code></pre>