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.
If you create an account on Scratch, you can download the code of any project. I like Scratch.
More like this
The other day, my better half and I were discussing scratching. Predictably, in the course of the discussion, I became aware of every itchy square millimeter of skin I might possibly possess.
Scratch Programming Playground: Learn to Program by Making Cool
Last October I reviewed Scratch Programming Playground, by Al Sweigart.
Did mammoths scratch themselves against rocks?
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.
n=1.851E6
pi=3.1344...
Guess they've been lying to us about that 3.14159 business all this time. ;)
@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!