Create a simulation result, including first and last state
The class "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.
simulationResult(value, seed) resetSeed(object, last = FALSE)
value |
The simulation to be done and saved. |
seed |
Optionally, the argument to |
object |
An object from the |
last |
Optional flag, if |
Function simulationResult
returns an object of that class, with the expr
and result
slots set to the unevaluated and evaluated version of the value
argument.
firstState
, lastState
:Objects of class "randomGeneratorState"
, containing the state of the generator before and after the simulation.
expr
:The expression evaluated to produce the simulation.
result
:The object returned by the simulation.
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.