def duplicates_array(self, n):
        """
        Get a 1d array with many duplicate values.
        """
        a = self._range(np.sqrt(n))
        return self._random_choice(a, n)

        Get a 1d array with many duplicate values.
        
numba/tests/test_sets.py