This calculates pi approximately by using Buffon's needle method
I got the idea from a video on Numberphile's YouTube channel