Comment

Comment by majorchord

Wouldn't it be even more random (and randomly faster) to break out of the while loop when a winner is found? That way you are not always iterating over the entire list.

Perhaps a math/statistics expert can tell me why that is a bad idea.

parent majorchord 1 month ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton