/calculate-pi

Based on Joma Tech's favorite interview question

Primary LanguagePython

Given the ability to get random numbers between 0 and 1, can you calculate the value of pi?

Joma Tech's favorite question, awesome explanation in his YT channel.

Very quick maths to demonstrate (to myself) the pithagorean theorem (like I haven't used it millions of times before), and to calculate the ratio used in the code: IMG_0887

Quick demo of the results: screenshot