Chapter 3 is a good example.
A single question should have an additional hidden text box storing the number of seconds when it was open, which is used as the random seed.
If the question is checked off, then get the input from the database, and use that as the seed to generate the graph and whatever needs to be done.
Add a button to the command that generates a new seed, clears all the associated inputs, but does not uncheck the box.
Chapter 3 is a good example.
A single question should have an additional hidden text box storing the number of seconds when it was open, which is used as the random seed. If the question is checked off, then get the input from the database, and use that as the seed to generate the graph and whatever needs to be done. Add a button to the command that generates a new seed, clears all the associated inputs, but does not uncheck the box.