YourBrain/TRACX-Web — Issue #2: Permit use of random seeds
Author: YourBrain
Created: 2011-11-09 14:36:22+00:00
State: open

one very important thing we need on the simulator is the possibility of running EXACTLY the same run again. This means we have to have some way of storing the random number generator seed. And of inserting it to make the program run a particular way.
So you run the program with random settings. You get a very nice run that illustrates some point (that you want to use during a class, for example). You click: "Save seed for this run" and it saves it to some file.
Next time you run the program you can either just run it normally or call the file with the saved seed in it. That is how I do it in all of my code.