[ODE] Reseting World Params

gl gl at ntlworld.com
Mon Apr 14 15:04:02 2003


You can always copy the rand() code David and use your own variables for it
in ODE - then it can be reseeded independently.
--
gl

----- Original Message -----
From: "David Whittaker" <david@csworkbench.com>
To: <ode@q12.org>
Sent: Monday, April 14, 2003 10:44 PM
Subject: Re: [ODE] Reseting World Params


> It's the standard C random number generator... rand and srand. (I know
> it's not great, but all I need is a different order each step, not
> necessarily a statistically perfect distribution).  You should be able to
> reseed it before the first step and get the same results, but Rob is doing
> some evolutionary programming, so he'd have to be sure that no rand()
> calls were made during the simulation (or that the same number happened
> each time) for outside stuff.  Since randomizing the joint order shouldn't
> make that big of a difference for smaller systems, I just suggested
> turning it off.
>
> David
>
> >
> >
> > David Whittaker wrote:
> >>
> >> Would you happen to be using the iterative solver?  If so, comment out
> >> #define RANDOMIZE_JOINT_ORDER
> >> (I think that's what I called it... it's close anyway.)
> >
> > What random number generator are you using?  Can you just reseed it?
> >
> > - Martin
> > _______________________________________________
> > ODE mailing list
> > ODE@q12.org
> > http://q12.org/mailman/listinfo/ode
>
>
>
> _______________________________________________
> ODE mailing list
> ODE@q12.org
> http://q12.org/mailman/listinfo/ode
>