A seed in a random number generator makes sure to return the same sequence of random numbers.
As you can see in your example, the second e gets the same values as d after resetting the seed.
I’m not sure I understand the issue correctly, but would you like to get the exactly same values for each torch.randn call? This would be an unusual use case.