Calculating Pi with Virtual Darts
total
inside
π (inside/total*4)
more info on youtube