C
Chris Gordon-Smith
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
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