News for hackers. Stuff that matters.
Re:Finding Pi from Random Numbers by xucheng on Thursday December 27, 2018 @10:41AM (#18770062)
There is another way to compute pi from random numbers while having nothing to do with geometry. The probability of two random numbers being co-prime is related to pi [1]. Notably, standupmaths did this once by hand [2].

[1]: https://en.wikipedia.org/wiki/Coprime_integers#Probability_o...

[2]: https://youtu.be/RZBhSi_PwHU

Re:Finding Pi from Random Numbers by liberte82 on Thursday December 27, 2018 @10:43AM (#18770084)
How do you do this with the need to use a ceiling? (Sorry, I didn't watch the video).
Re:Finding Pi from Random Numbers by hcs on Thursday December 27, 2018 @12:18PM (#18770848)
If you mean a highest integer, he didn't, he's using rolls of a pair of 100+ sided dice. It's an approximation, anyway.