I want to generate random numbers, but these numbers should be somewhat biased, so that numbers in certain ranges appear more frequently than others.
For example, to spread out a series of banner ad impressions in proportion to the number of impressions remaining for each ad campaign.