|
|
| XP is just a number | |
| PerlMonks |
Re: Per cents and Probabilitiesby btrott (Parson) |
| on Jun 25, 2001 at 02:28 UTC ( #91135=note: print w/ replies, xml ) | Need Help?? |
|
It seems like what you want is biased/weighted random number selection, where the weights are stored as the keys of a hash. You might take a look at this previous node, which has some good responses: Biased random number selection. You could probably adapt one of those responses to your own needs.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||