In honor of Pi day I am posting a link to a Python module to calculate Pi using Buffon’s needle method. He used needles but you can use anything. I’ve seen posts using frozen hotdogs to calculate Pi. Enjoy Pi day.
https://www.101computing.net/estimating-pi-using-buffons-needle/