I have a monte-carlo like system, where I have some state the evolves randomly, using an internal random number generator. I'm also storing a const copy of this state elsewhere in the program, as I would like to know how it would evolve, were it to actually evolve. This requires 2 things of the random number generator:
1) The ability to clone the generator without modifying it, to store in the copied version of the state.
2) The ability to determine what the next random number would be from the const copy of the generator.
Is this possible using only the standard library? If not, can you recommend a 3rd party library?
Aucun commentaire:
Enregistrer un commentaire