title: PHP rand but with a bigger chance of getting another number?
body: <p>I have a php file where i want to get a random number, but i want it to be a 80% chance to be 1. And then 20% to be either 2, 3 or 4. Usually you can do something like this:</p>
  
  <pre><code>rand(1, 4)
  </code></pre>
  
  <p>But i want to have a higher chance of getting <code>1</code>,  as i explained.</p>