title: How to code a non-uniform random distribution in PHP
body: <p>I'm new there :)
  I was trying to create a non-uniform random distribution code in PHP with following probabilities in decimals (precision 2)</p>
  
  <pre><code>From 1.10 to 1.15 = 40%
  From 1.16 to 1.20 = 30%
  From 1.21 to 1.25 = 20%
  From 1.26 to 1.30 = 10%
  </code></pre>
  
  <p>That's my actual code:</p>
  
  <pre><code>$low = 1.1
  $high = 1.3
  $multiplier = mt_rand($low*100,$high*100)/100;
  </code></pre>
  
  <p>This doesn't return the desired distribution. How can I change my code to make it not uniform in distribution?</p>