We can create a random number generator/ stream in numpy
https://docs.scipy.org/doc/numpy/reference/generated/numpy.random.RandomState.html 5
also in matlab
https://www.mathworks.com/help/matlab/ref/randstream.html
I was wondering if there is any function in Pytorch can do this