(self, val_min, val_max, size=None)
return rand_val
Samples random float between [val_min, val_max].
Samples random float between [val_min, val_max].
Samples random float between [ val_min val_max ] .
def _rand_uniform(self, val_min, val_max, size=None):
    """Samples random float between [val_min, val_max]."""
    if hasattr(self._env, "np_random"):
      rand_val = self._env.np_random.uniform(val_min, val_max, size=size)
    else:
      rand_val = np.random.uniform(val_min, val_max, size=size)
    return rand_val
def _rand_uniform ( self , val_min , val_max , size = None ) : if hasattr ( self . _env , "np_random" ) : rand_val = self . _env . np_random . uniform ( val_min , val_max , size = size ) else : rand_val = np . random . uniform ( val_min , val_max , size = size ) return rand_val