Buffon's Needle without using PI in the source

How do toothpicks approximate the value of pi? I'll show you by coding a simulation in p5.js!
Wikipedia page describing Buffon's Needle.
Explanation from Technology Education College of Education @ University of Illinois.
Simulation by Thomas Ogden
by Mathieu Blanchette
by Jason Heglund
by Will from America
The Showcase is collection of projects created by viewers like you!
Have you made something? Please share your work!
Suggested by the video you're watching