in reply to 64 bit random numbers
However, Math::Random::MT::Auto provides random 64-bit integers directly (again, provided your Perl is compiled using 'use64bitint'). Just install it from CPAN, and then:my $rand64 = (int(rand(4294967296)) << 32) | int(rand(4294967296));
A lot simpler. Plus, the speed is about the same on Windows, and is a lot faster on Solaris.use Math::Random::MT::Auto qw/irand/; my $rand64 = irand();
|
|---|