def duplicates_array(self, n):
        a = self._range(np.sqrt(n))
        return self._random_choice(a, n)
Get a 1d array with many duplicate values.
dataset/ETHPy150Open numba/numba/numba/tests/test_sets.py/BaseTest.duplicates_array