For testing purposes I'm creating random numbers with a given seed (i.e. not based on the current time).
Thus the whole program is deterministic.
If something happens, I'd like to be able to quickly restore a point "shortly before" the incident.
Therefore I need to be able to restore a System.Random
to a previous state.
Is there a way to extract a seed which I can use to recreate the random generator?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…