"simulationResult" and the function of the same name record an arbitrary simulation result, along with the state of the random number generators at the start and at the end of the simulation, allowing trustworthy verification or repetition of the simulation.
1 2 3
The simulation to be done and saved.
Optionally, the argument to
An object from the
Optional flag, if
simulationResult returns an object of that class, with the
result slots set to the unevaluated and evaluated version of the
Objects of class
"randomGeneratorState", containing the state of the generator before and after the simulation.
The expression evaluated to produce the simulation.
The object returned by the simulation.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.