(self, num_samples, replace=False)
return self.index_to_state(idx)
Sample uniformly at random from the discrete domain.

        Parameters
        ----------
        num_samples : int
        replace : bool, optional
            Whether to sample with replacement.

        Returns
        -------
        points : ndarray
            Random points on the continuous rectangle.
Sample uniformly at random from the discrete domain.
Sample uniformly at random from the discrete domain .
def sample_discrete(self, num_samples, replace=False):
        """Sample uniformly at random from the discrete domain.

        Parameters
        ----------
        num_samples : int
        replace : bool, optional
            Whether to sample with replacement.

        Returns
        -------
        points : ndarray
            Random points on the continuous rectangle.

        """
        idx = np.random.choice(self.nindex, size=num_samples, replace=replace)
        return self.index_to_state(idx)
def sample_discrete ( self , num_samples , replace = False ) : idx = np . random . choice ( self . nindex , size = num_samples , replace = replace ) return self . index_to_state ( idx )