check out Math::Random. it's very fast, flexible, and well-tested.
anders pearson
In reply to Re: Weighted random numbers generator by thraxil in thread Weighted random numbers generator by spurperl