in reply to Re: Randomizing Large Integers
in thread Randomizing Large Integers

From what I've read, rand is dependent on whats installed on the OS. On this system, when feeding rand with integers > 32768, the distribution of values returned (from multiple calls using the same number) breaks down badly. So this seems to support 15 bits.

Replies are listed 'Best First'.
Re^3: Randomizing Large Integers
by syphilis (Archbishop) on May 20, 2008 at 08:01 UTC
    Running perl -V:randbits will tell you how many random bits your perl's rand() has.

    Cheers,
    Rob