PHP Weighted random number
<p>How can I generate a weighted random number between 1 and 10 with 10 being the highest chance and 1 being the lowest chance?</p>

<pre><code>rand(1,10) ?
</code></pre>

<p>Needs to be a simple one line code since it will be run 100,000's of times</p>
