@Persona3Reload@lemmy.blahaj.zone to 196@lemmy.blahaj.zoneEnglish • 5 months agoRulelemmy.blahaj.zoneimagemessage-square57fedilinkarrow-up1396arrow-down17
arrow-up1389arrow-down1imageRulelemmy.blahaj.zone@Persona3Reload@lemmy.blahaj.zone to 196@lemmy.blahaj.zoneEnglish • 5 months agomessage-square57fedilink
minus-square@aliser@lemmy.worldlinkfedilink19•5 months agoreturn Math.random() > 0.5 would also be correct about half the time
minus-square@deo@lemmy.dbzer0.comlinkfedilink1•5 months agoWouldn’t that only be correct about 25% of the time?
minus-squareRain World: Slugcat GamelinkfedilinkEnglish0•5 months agofor even, 50% chance of correctness, same for odd.
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.