Say I seed 123 with srand(123), and run rand() X times. Later, I want to be able to restart Julia and seed a number (or state) such that when I run rand() again I get the number that would have been generated if I had seed 123 and run rand() X times. Is there any way I can do that, or do I really have to run rand() X times to obtain the state I want?
Aucun commentaire:
Enregistrer un commentaire