Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Chris Gordon-Smith Newsgroups: comp.lang.c++ Subject: Factors Inhibiting Reproducability Of Simulation Results Date: 10 Sep 2011 14:26:19 GMT Lines: 13 Message-ID: <9d1acbF38fU2@mid.individual.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: individual.net huKxCI2iaR3HD5PnBL9UsQ1Qw7TEQmTqyB2LrIuYI4csjUojpI Cancel-Lock: sha1:FQSGFJXOTYyE+QE+jT1t7+2Ie7g= User-Agent: Pan/0.133 (House of Butterflies) Xref: x330-a1.tempe.blueboxinc.net comp.lang.c++:10028 I just managed to get my artificial chemistry simulation producing the same results when I run it twice with the same parameters. Perhaps some members of the group will be interested in the two factors that led to differing results: 1) My graphics library (GTKMM2) calling rand() at random times between the calls made by my code 2) My code storing pointers in an std::set, and then iterating over the set. The ordering is dependent on the memory locations of the dynamically allocated objects to which the pointers point. Chris Gordon-Smith www.simsoup.info