Rule
Rule
Rule
return true
is correct around half of the time
python
assert IsEven(2) == True assert IsEven(4) == True assert IsEven(6) == True
All checks pass. LGTM
js
return Math.random() > 0.5
would also be correct about half the time
Wouldn't that only be correct about 25% of the time?
for even, 50% chance of correctness, same for odd.