|
|
| Keep It Simple, Stupid | |
| PerlMonks |
Re: Re: Rolling a biased dieby tomazos (Deacon) |
| on Apr 13, 2002 at 14:38 UTC ( #158780=note: print w/ replies, xml ) | Need Help?? |
|
How about precaching a hash called %biasbase like this?
And then iterate like this:
Does that make sense? That way you can bail out early.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||