code: def sample(self, rstate=None):
          
  
          if rstate is None:
              rstate = np.random
  
          return rstate.rand(self.n)
docs: Draw a sample uniformly distributed within the unit cube.
  
          Returns
          -------
          x : `~numpy.ndarray` with shape (ndim,)
              A coordinate within the unit cube.