Randomization behaviour when doing shallow copy

In reply to sharat:

On further debug,I found out that during a shallow copy the randomization state also gets copied over and hence this behavior. So, what governs the randomization state and whether the interpretation is correct?