You are viewing a single thread.
View all comments View context
18 points
return Math.random() > 0.5

would also be correct about half the time

permalink
report
parent
reply
1 point

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

permalink
report
parent
reply
0 points

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

permalink
report
parent
reply