Perl-Sensitive Sunglasses | |
PerlMonks |
Re^3: inclusive randby Eily (Monsignor) |
on Mar 13, 2017 at 13:07 UTC ( [id://1184414]=note: print w/replies, xml ) | Need Help?? |
Personally I'd make sure to stay below the precision of rand, to avoid skewing the probabilities because of the multiple operations (multiplication, rounding, division) and the error they may imply. Besides, there's nothing particularily significant about the precision of rand, it's probably around the best possible precision on a float. And you could actually get a better resolution than rand with Crypt::Random.
In Section
Seekers of Perl Wisdom
|
|