C's rand() function is very bad and should never be used really.

On Thu, Feb 26, 2009 at 11:37 AM, Felipe Lessa <felipe.le...@gmail.com> wrote:
> On Thu, Feb 26, 2009 at 7:56 AM, Eugene Kirpichov <ekirpic...@gmail.com> 
> wrote:
>> Here is a variant that uses mersenne-random-pure64 and works less than
>> 2x slower than C++:
>
> And I would like to notice that rand() is incredibly dumber than the
> Mersenne twister, so probably if we took rand()'s code from glibc and
> rewrote it in Haskell, there would be another performance increase.
>
> --
> Felipe.
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe@haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to