def sparse_array(self, n):
        # Note two calls to sparse_array() should generate reasonable overlap
        a = self._range(n ** 1.3)
        return self._random_choice(a, n)
Get a 1d array with values spread around.
dataset/ETHPy150Open numba/numba/numba/tests/test_sets.py/BaseTest.sparse_array