minus-squarealiser@lemmy.worldlinkfedilinkarrow-up18·20 days agoreturn Math.random() > 0.5 would also be correct about half the time
minus-squaredeo@lemmy.dbzer0.comlinkfedilinkarrow-up2·20 days agoWouldn’t that only be correct about 25% of the time?
minus-squareRain World: Slugcat Game@lemmy.worldlinkfedilinkEnglisharrow-up0·17 days agofor even, 50% chance of correctness, same for odd.
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.