Solved by albanD in post #2 
              
              
                Hi, 
You have few options depending on how you want to generate random numbers. 

You can get and set the rng state using this. So you will have to manually get the state and reset it depending on your needs.
You can create your own Generator and pass it as an argument to inplace random function so …