News for hackers. Stuff that matters.
Re:Show HN: Pi Approximation using Monte Carlo by Houshalter on Sunday August 10, 2014 @03:07PM (#8160413)
I did this a long time ago in Lua thinking it would be really cool to approximate pi. But it never converged to the correct value. No matter how many times I ran it or for how long. I think it was 3.15 or something like that, I don't remember. My best guess it was due to floating point rounding, or because the random function was imperfect.

There are no comments on this comment yet.