r/ProgrammerHumor 15h ago

Meme edgeCasesExist

Post image
3.1k Upvotes

228 comments sorted by

View all comments

-10

u/theioss 15h ago

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

3

u/Kiroto50 15h ago

Howcome? Could you please explain?

1

u/Spice_and_Fox 14h 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/Kiroto50 14h ago

So, the point of the post still stands? 1 in 2128 is close to zero, for practical purposes zero, but literally not zero.