Re: Checking 1-(-1)^n by Danny Glin - Tuesday, 12 August 2014, 3:17 PM Number of replies: 0 This leaves open the possibility that the (randomly chosen) test points will either all be even or all be odd. You may want to add:$f->{test_at} = [[2],[3]];(where $f is your function)to ensure that you are testing at at least one even and one odd value.Danny Permalink Show parent Reply