code: def random_samples(self, n):
          
          samples = self.samples
          inds = rand.randint(len(samples),size=int(n))
  
          newsamples = samples.iloc[inds]
          newsamples.reset_index(inplace=True)
          return newsamples
docs: Returns a random sampling of given size from the existing samples.
  
          :param n:
              Number of samples
  
          :return:
              :class:`pandas.DataFrame` of length ``n`` with random samples.