Think about Loose Coupling | |
PerlMonks |
Re^4: inclusive randby pryrt (Abbot) |
on Mar 13, 2017 at 15:28 UTC ( [id://1184429]=note: print w/replies, xml ) | Need Help?? |
Since irand($n) returns [0,$n) => [0,$n-1] -- ie, not including $n -- you would have to divide by 524287 to get [0,1] inclusive.
In Section
Seekers of Perl Wisdom
|
|