(self, mean, std, size=None)
return rand_val
Samples random value from gaussian.
Samples random value from gaussian.
Samples random value from gaussian .
def _randn(self, mean, std, size=None):
    """Samples random value from gaussian."""

    if size is None:
      size = []

    if hasattr(self._env, "np_random"):
      rand_val = self._env.np_random.randn(*size)
    else:
      rand_val = np.random.randn(*size)

    rand_val = std * rand_val + mean
    return rand_val
def _randn ( self , mean , std , size = None ) : if size is None : size = [ ] if hasattr ( self . _env , "np_random" ) : rand_val = self . _env . np_random . randn ( * size ) else : rand_val = np . random . randn ( * size ) rand_val = std * rand_val + mean return rand_val