in reply to Re^2: Rand Wackiness!
in thread Rand Wackiness!

How annoying that must be: perl on my Debian systems reports 48 bits.

print substr("Just another Perl hacker", 0, -2);
- apotheon
CopyWrite Chad Perrin

Replies are listed 'Best First'.
Re^4: Rand Wackiness!
by jdhedden (Deacon) on May 12, 2006 at 15:36 UTC
    Math::Random::MT::Auto can return 64-bit random integers (on 64-bit Perls). The randbits value of 48 reflects the fact that the floating-point values returned by rand() can have at most 48 significant bits (the other bits being used for the sign and exponent).

    Remember: There's always one more bug.