PHP: How to generate biased random numbers
<p>I want to generate random numbers, but these numbers should be somewhat biased, 
so that numbers in certain ranges appear more frequently than others.</p>

<p>For example, to spread out a series of banner ad impressions in proportion to the number of impressions remaining for each ad campaign.  </p>
