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

According to BrowserUK, Active State's generator produces 15 bit numbers.
As you can verify for yourself, with
use Config; print $Config{randbits};

Replies are listed 'Best First'.
Re^3: Rand Wackiness!
by apotheon (Deacon) on May 12, 2006 at 12:56 UTC

    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

      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.