def _sample(
            self, 
            n: int,
        ) -> np.ndarray:
        """
        Randomly sample ``n`` instances of a bounded, integer decision variable.
        Decision variables are sampled from a uniform distribution.

        This is a private method governing the behavior of the ``sample`` 
        method.

        Parameters
        ----------
        n : int
            Number of decision variable samples which to draw.

        Returns
        -------
        out : np.ndarray
            An array of shape ``(n,)`` containing sampled bounded, integer 
            decision variables.
        """
        low, high = self.bounds
        return np.random.randint(low, high=high + 1, size=n)

        Randomly sample ``n`` instances of a bounded, integer decision variable.
        Decision variables are sampled from a uniform distribution.

        This is a private method governing the behavior of the ``sample`` 
        method.

        Parameters
        ----------
        n : int
            Number of decision variable samples which to draw.

        Returns
        -------
        out : np.ndarray
            An array of shape ``(n,)`` containing sampled bounded, integer 
            decision variables.
        
pymoo/core/variable.py