[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Getting randomic integers
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Sun, 17 Jan 2010 09:14:33 -0200
> the math.random function is of poor quality
To be precise, ANSI C makes no guarantees for its statistical properties.
However, in Linux, with gnu libc, it does have good statistical properties.
Apparently, not so for Mac OS X or Windows, if I remember correctly.
"man srand" in Mac OS X even says "rand, srand -- bad random number generator".