Here's the flat boneheaded way; get them as strings,
You can use sprintf and concatenation if you want them in memory. That's not entirely dumb; you can initialize Math::BigInts with them.$ perl -e'for (1..10) { printf "%04d", int rand 10000 for 1..3; print +$/ }' 514418728718 307337438051 439351593615 060710058137 425610029405 005219485294 477480663085 055060660839 412479203930 462907707151 $
Test these, too. PRNG's often show periodicity in the low bits, and left-shifting them is asking for trouble.
After Compline,
Zaxo
In reply to Re: Rand Wackiness!
by Zaxo
in thread Rand Wackiness!
by SleepyJay
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |