See the documentation for rand. It explains pretty well why this is happening.
--MidLifeXis
In reply to Re: Random generator fail by MidLifeXis in thread Random generator fail by Anonymous Monk