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