Persona3Reload@lemmy.blahaj.zone to 196@lemmy.blahaj.zoneEnglish · 1 day agoRulelemmy.blahaj.zoneimagemessage-square53fedilinkarrow-up1364arrow-down16
arrow-up1358arrow-down1imageRulelemmy.blahaj.zonePersona3Reload@lemmy.blahaj.zone to 196@lemmy.blahaj.zoneEnglish · 1 day agomessage-square53fedilink
minus-squareEuphoma@lemmy.mllinkfedilinkEnglisharrow-up69·1 day agoreturn true is correct around half of the time
minus-squarealiser@lemmy.worldlinkfedilinkarrow-up15·22 hours agoreturn Math.random() > 0.5 would also be correct about half the time
minus-squaredeo@lemmy.dbzer0.comlinkfedilinkarrow-up1arrow-down1·16 hours agoWouldn’t that only be correct about 25% of the time?
minus-squareImplyingImplications@lemmy.calinkfedilinkarrow-up35·1 day agoassert IsEven(2) == True assert IsEven(4) == True assert IsEven(6) == True All checks pass. LGTM
return true
is correct around half of the time
would also be correct about half the time
Wouldn’t that only be correct about 25% of the time?
assert IsEven(2) == True assert IsEven(4) == True assert IsEven(6) == True
All checks pass. LGTM