Diff between object graphs?

Cem Karan cfkaran2 at gmail.com
Thu Apr 23 12:34:08 CEST 2015


On Apr 23, 2015, at 1:59 AM, Steven D'Aprano <steve+comp.lang.python at pearwood.info> wrote:

> On Thursday 23 April 2015 11:53, Cem Karan wrote:
> 
>> Precisely.  In order to make my simulations more realistic, I use a lot of
>> random numbers.  I can fake things by keeping the seed to the generator,
>> but if I want to do any sort of hardware in the loop simulations, then
>> that approach won't work.
> 
> That's exactly why we have *pseudo* random number generators. They are 
> statistically indistinguishable from "real" randomness, but repeatable when 
> needed.

Which is why is why I mentioned keeping the seed above.  The problem is that I eventually want to do hardware in the loop, which will involve IO between the simulation machine and the actual robots, and IO timing is imprecise and uncontrollable.  That is where not recording something becomes lossy.  That said, the mere act of trying to record everything is going to cause timing issues, so I guess I'm over thinking things yet again.

Thanks for the help everyone, its helped me clarify what I need to do in my mind.

Thanks,
Cem Karan


More information about the Python-list mailing list