def test_randint_bool(size):
    """Test randint with boolean output dtype."""
    arr_np, arr_num = gen_random_from_both("randint", 2, size=size, dtype=bool)
    assert_distribution(
        arr_num, np.mean(arr_np), np.std(arr_np), mean_tol=0.05
    )
Test randint with boolean output dtype.
tests/integration/test_random_creation.py