logoalt Hacker News

ExoticPearTreetoday at 12:02 PM6 repliesview on HN

> You definitely would expect a roughly equal number of 0s as any other of those numbers since it's uniformly distributed.

How would random numbers be uniformly distributed?


Replies

Hugsboxtoday at 12:23 PM

Because each number is equally as likely as every other number. If you know you're more likely to get certain numbers, or in this case have no chance of getting certain other numbers, it is by definition _less random_.

show 1 reply
BearOsotoday at 4:41 PM

As the number of samples approaches infinity, the percentage share of all possible results approaches equality. A uniform random distribution is like the mathematical identity of statistics.

thinkingQueentoday at 12:12 PM

So you think a weighted die is more random than a fair die? A uniform distribution means each outcome has equal probability; it doesn’t mean the outcome is predictable.

necovektoday at 2:21 PM

With enough repetitions.

With a few (say 10, so 655360 runs), you will not get a uniform distribution, and some numbers (like 0) might not appear.