[ODE] dRandInt Crash Fix

Aras Pranckevicius nearaz at gmail.com
Thu Jun 23 07:45:50 MST 2005


> I'd have to disagree-- dRand() is quite _not_ good (if you're looking for
> random, though for the reordering that it gets used for in ODE it probably
> doesn't have to be very good)--

Yes, it's not good enough as a _general purpose_ PRNG. However, in ODE
it's only used to pseudo-randomly reorder constraints inside the
solver; the task where you would get away without any reordering at
all (but reordering probably improves something).

For this task, beating a multiply and an add (which is dRand) is
pretty hard. dRandInt is whole another story, of course :)

-- 
Aras 'NeARAZ' Pranckevicius
http://nesnausk.org/nearaz | http://nearaz.blogspot.com



More information about the ODE mailing list