Persona3Reload@lemmy.blahaj.zone to 196@lemmy.blahaj.zoneEnglish · 9 months agoRulelemmy.blahaj.zoneimagemessage-square7linkfedilinkarrow-up13arrow-down11
arrow-up12arrow-down1imageRulelemmy.blahaj.zonePersona3Reload@lemmy.blahaj.zone to 196@lemmy.blahaj.zoneEnglish · 9 months agomessage-square7linkfedilink
minus-squareEuphoma@lemmy.mllinkfedilinkEnglisharrow-up2·9 months agoreturn true is correct around half of the time
minus-squareImplyingImplications@lemmy.calinkfedilinkarrow-up1·9 months agoassert IsEven(2) == True assert IsEven(4) == True assert IsEven(6) == True All checks pass. LGTM
minus-squarealiser@lemmy.worldlinkfedilinkarrow-up1·9 months agoreturn Math.random() > 0.5 would also be correct about half the time
return true
is correct around half of the time
assert IsEven(2) == True assert IsEven(4) == True assert IsEven(6) == True
All checks pass. LGTM
would also be correct about half the time