In my simulation, I'm using randomSeed to keep the random actions consistent if I wish, so I can have it rerun multiple times while slowly changing one behavior variable.
That solved the problem for the moment, but since I've implemented threads (so it doesn't freeze momentarily while the pathfinding executes), each iteration has become slightly different again (I'm not changing any behavior variables yet).
Without getting into the specifics of my code, has this kind of thing been a problem before? Ensuring that the different random() calls get called in the right order?
Thanks.
That solved the problem for the moment, but since I've implemented threads (so it doesn't freeze momentarily while the pathfinding executes), each iteration has become slightly different again (I'm not changing any behavior variables yet).
Without getting into the specifics of my code, has this kind of thing been a problem before? Ensuring that the different random() calls get called in the right order?
Thanks.
1