Solved by Zafar in post #2 
              
              
                The determinism also depends on how many times did you call the random number generator. In you examples, there are two models, which are functionally the same. However, their initialization is different, because the number of random values generated after the seeding is different. 
Here is what you…