Persona3Reload@lemmy.blahaj.zone to 196@lemmy.blahaj.zoneEnglish · 14 days agoRulelemmy.blahaj.zoneimagemessage-square50fedilinkarrow-up1377arrow-down15
arrow-up1372arrow-down1imageRulelemmy.blahaj.zonePersona3Reload@lemmy.blahaj.zone to 196@lemmy.blahaj.zoneEnglish · 14 days agomessage-square50fedilink
minus-squareEuphoma@lemmy.mllinkfedilinkEnglisharrow-up78·14 days agoreturn true is correct around half of the time
minus-squareImplyingImplications@lemmy.calinkfedilinkarrow-up40·14 days agoassert IsEven(2) == True assert IsEven(4) == True assert IsEven(6) == True All checks pass. LGTM
minus-squarealiser@lemmy.worldlinkfedilinkarrow-up18·14 days 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