Random function calculation

If you’re not too worried over the quality of randomness, you could just use seed = 2 etc.
If you run it sequentially, one way to be sure is to save the last seed(s) and continue from them. Or you could estimate the number of random calls and do them as warm up. It is really easy to make mistakes when trying to be clever, and I must admit that I’ve certainly come close to making the mistake described there thinking that it looks like a good idea at first sight.

Best regards

Thomas