Yet another inefficient pi calculator. Just click the flag and watch. Because it's based on randomness, it might take a while to get close to the real value, so maybe leave it running in the background for a while.
Idea once again stolen from Stand-Up Maths on YouTube: https://scratch.mit.edu/discuss/youtube/hkahGSss6SsU