On Sun, Mar 23, 2003 at 09:30:12PM -0000, Rob Dixon wrote:

> Careful inspection shows that each of your random numbers is exactly
> divisible by 3.0517578125. Dividing your range of 100000 by this
> figure (magically, for those who know their powers of two) gives
> 32768, showing that 'rand' is in fact producing a 15-bit pseudo-random
> number scaled according to the range that you supply.

Which seems pretty low, but is the default on Windows, I think.

Check RANDBITS when you Configure perl if that seems wrong.

-- 
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to