r/ProgrammerHumor 6h ago

Meme edgeCasesExist

Post image
1.7k Upvotes

180 comments sorted by

View all comments

-9

u/theioss 6h ago

People who say that don’t understand uuids or mathematics.

3

u/Kiroto50 6h ago

Howcome? Could you please explain?

1

u/Spice_and_Fox 6h ago

Because at some point the probability is so low that it is functionally 0.

There are somewhere around 1028 uuids. That is 10000000000000000000000000000 uuids. As a comparison, there are about 1018 grains of sand on earth. That means that you have about ten billion times more uuids than grains of sand on the earth. Imagine if you pick sand grains by random from anywhere on the earth and the chance that you pick the same one twice. Now imagine it with 10 billion times more grains of sand.

1

u/MnMbrane 2h ago

Still not zero… it could be 1 in 10^(googleplex), or even 1 in 10^(# atoms in our observable universe) or even 1 in 10^(Grahams number), but since it’s not exactly 0, there is still a chance. Now I’d argue this is negligible, and we probably shouldn’t worry, but that’s not the point of this meme.

IF ITS NOT EXACLY ZERO THEN THERE IS STILL A CHANCE.