This is a PI simulation in real time using the MonteCarlo technique. This technique is used to calculate areas of strange shapes that you don’t have a formula for. Be free to remix the project with credit! The more simulations you do (simulation speed), the laggier scratch will run, but faster you will get your results. In 500.000 simulations you should have at least 2 correct decimals. When you reach 8 million simulations, you should have at least 3 correct decimals. At 1 billion smulations you should have 4 correct decimals
All by me lol V0.1: added a global most simulations ever variable. V0.2: added more stuff but for now buggy. Please check he code and say me the error, thx :^)