[ODE] rand vs dRand
Jon Watte
hplus-ode at mindcontrol.org
Wed Apr 28 16:05:38 MST 2004
I think it's reasonably important that, whatever method is used, is
documented, and doesn't change. dRandInt() is pretty good for that.
The reason has to do with deterministic simulation / replay.
Cheers,
/ h+
-----Original Message-----
From: ode-bounces at q12.org [mailto:ode-bounces at q12.org]On Behalf Of Adam
D. Moss
Sent: Wednesday, April 28, 2004 9:56 AM
To: ode
Subject: Re: [ODE] rand vs dRand
Marc Rochel wrote:
> Is there a reason why there's used rand() instead of dRand() in
> dInternalStepIslandFast() in stepfast.cpp at line 837?
I'm guessing that the author didn't know about dRand().
StepFast doesn't need a very good PRNG I think, so dRandInt
is probably fine. I'll have an experiment...
--Adam
--
Adam D. Moss . ,,^^ adam at gimp.org http://www.foxbox.org/ co:3
_______________________________________________
ODE mailing list
ODE at q12.org
http://q12.org/mailman/listinfo/ode
More information about the ODE
mailing list