4 ms·
Readers may also be interested in this old comment of mine: https://news.ycombinator.com/item?id=30895669 https://news.ycombinator.com/item?id=30895669. It uses
by orlp 3y ago
Readers may also be interested in this old comment of mine: https://news.ycombinator.com/item?id=30895669 https://news.ycombinator.com/item?id=30895669. It uses the method by Downey briefly mentioned at the end of the article.
- toxik 3y agoHm, this method seems odd to me. Unbiased yes but then rounded to nearest float. Consider each floating point value a bin. Then this will fill bins where the coverage is sparse faster. Eg say the possible floats are 1, 10, 100 and so on - you generate from 0 to 10000. There will be far more in bin 1000 than 100.