(self, seed=None)
return self.rng
Generate the random number generator on host.

        Arguments:
            seed (int): random number generator seed

        Returns:
            seeded numpy RNG
Generate the random number generator on host.
Generate the random number generator on host .
def gen_rng(self, seed=None):
        """
        Generate the random number generator on host.

        Arguments:
            seed (int): random number generator seed

        Returns:
            seeded numpy RNG
        """
        self.rng = np.random.RandomState(seed)
        self.init_rng_state = self.rng_get_state()
        return self.rng
def gen_rng ( self , seed = None ) : self . rng = np . random . RandomState ( seed ) self . init_rng_state = self . rng_get_state ( ) return self . rng