388
Rule (lemmy.blahaj.zone)
you are viewing a single comment's thread
view the rest of the comments
[-] aliser@lemmy.world 19 points 3 months ago
return Math.random() > 0.5

would also be correct about half the time

[-] deo@lemmy.dbzer0.com 1 points 3 months ago

Wouldn't that only be correct about 25% of the time?

[-] rain_worl@lemmy.world 0 points 3 months ago

for even, 50% chance of correctness, same for odd.

this post was submitted on 31 Oct 2024
388 points (98.3% liked)

196

17002 readers
2222 users here now

Be sure to follow the rule before you head out.

Rule: You must post before you leave.

^other^ ^rules^

If you have any questions, feel free to contact us on our matrix channel.

founded 2 years ago
MODERATORS