I was aware about the 52 bits but too lazy to care about the DWIM rounding of Perl's number printing.
And I don't think it really matters, there are far too many implementation details involved, to have a "reliable" random distribution in these dimensions.
I still need to see the concrete requirements before investing in a better approach.
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!
In reply to Re^7: inclusive rand
by LanX
in thread inclusive rand
by msh210
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |