Scratch version of Pi estimation

I already went over a Monte Carlo method for estimating Pi - you know, for Pi-Day (March 14). Well, here is a small addition. This is the same thing done in Scratch.

i-750ea042ec01f89873db2603e8c4f543-2010-03-11_randompi_scratch.jpg

If you create an account on Scratch, you can download the code of any project. I like Scratch.

More like this

Do you think that you could include the animation behind a cut? It slows my browser down like crazy every time I load. When I try to search multiple times, I have to reload the main page several times. Thanks!

@jg,

Sorry about that - I was sort of worried about that app autorunning. I have replaced it with picture and a link to the scratch website. Hope that fixes it.

@ToSeek,

My wife found the same thing - I suspect it is a problem with Scratch's random number generator. I could be wrong though.

WOW! This is the first time I've heard of Scratch. I teach algebra to 8th graders and this is exactly the kind of tool I've been looking for. The possibilities are overwhelming. Thanks for the tip!