[Haskell-cafe] Performance question

Lennart Augustsson lennart at augustsson.net
Fri Feb 27 05:08:00 EST 2009


The random() function is only marginally better than rand().

On Fri, Feb 27, 2009 at 6:50 AM, Ketil Malde <ketil at malde.org> wrote:
> Lennart Augustsson <lennart at augustsson.net> writes:
>
>> C's rand() function is very bad and should never be used really.
>
> On Linux (really GNU libc, I suppose) it is the same as random().  But
> for portability, one is encouraged to spend the two extra letters.  I
> don't understand the details, but I think the Mersenne twister is much
> better in any case.
>
> -k
> --
> If I haven't seen further, it is by standing in the footprints of giants
>


More information about the Haskell-Cafe mailing list