I am creating a deep clone for some object. The object contains a Random.
Random
Is it good practice to retrieve the seed from the Random? If so,
The reason I'm here is that I need to remember the seed in case I need to recreate what happened in a particular program run. The code I used is:
long seed = random.nextLong(); random.setSeed(seed);
Although this isn't quite what is asked for, I think it is probably what is required.