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