Y
Hacker News
new
|
ask
|
show
|
jobs
by
b112
911 days ago
Yes, almost. They will approach equal as the count approaches infinity.
So if ypu ever see a random pick equate to 50/50, the end of the universe is upon us.
2 comments
eru
911 days ago
The ratio of occurrences of 0s and 1s will go to one in the limit. But the absolute difference of occurrences will diverge. (It grows roughly like the square-root of the number of digits.)
link
AlexAltea
911 days ago
Nit, their ratio (bits set/unset) will approach 1 as the count approaches infinity, but the values themselves will not approach equal.
https://gist.github.com/AlexAltea/3aa96efc41f59e80631c346908...
link