Hi,
You have few options depending on how you want to generate random numbers.

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