I don’t know if it’s the right place to ask this one. But i’m searching for the code of rand and it’s implementation used in the pytorch.
I think it’s working on the same mersenne twister.
[SOLVED]
I am looking for this as well. Did you manage to figure out where the implementation is?