title: Generate random numbers with less probabilities of bigger numbers
body: <p>I want to implement a random number generator which lets me set the maximum number I want but also lets me tweak the probabilities to make it harder to get bigger number.</p>
  
  <p>Using this would allocate the same probabilities to any value in the range of 100.</p>
  
  <pre><code>Math.floor(Math.random()*100);
  </code></pre>
  
  <p>How can I make numbers get progressively harder to appear as the number gets closer to the limit (100)?</p>