Woeful performance of D compared to C++
Jeff McGlynn
d at jeffrules.com
Fri Jan 19 01:36:49 PST 2007
janderson Wrote:
> Walter Bright wrote:
> > Dave wrote:
> >>
> >> D's rand() is slow.
> >
> > True. C's rand() is fast, but is known to be not very random. As you
> > pointed out, D users can use either as required.
>
> Maybe there should be a randfast() in the standard lib? I imagine this
> confusion will come up again.
>
> -Joel
I recommend a built-in mersenne twist function, usually called mt_rand().
-- Jeff
More information about the Digitalmars-d
mailing list