logoalt Hacker News

IAmBroomlast Tuesday at 3:39 PM1 replyview on HN

No, that has nothing to do with randomness. It is however a different distribution than expected.

Think about the odds of a uranium atom decaying in a given second. Certainly a random event, yet for most seconds, the value is False, not True.


Replies

blensorlast Tuesday at 4:26 PM

You are both right, the atom decaying is completely random but the distribution of the decays is still predictable.

If you have a random number generator your are relying on the fact that it is uniformly distributed and thus has no bias towards certain numbers. Or if it is not uniformly distributed you would want to know the exact distribution so you can correct for it.

If you have an RNG that is treated as putting out uniformly distributed numbers but it is does in fact favor some numbers over others, that would be a defect that can cause problems/be exploited.