A * Animate a math problem
Loop #:
Box #:
Color:

By:

J.L.

Software:

HTML and Javascript

About this project:

This Javascript routine randomly selects one of three colors (blue, red or green) and randomly puts that color into one of 40 boxes. The routine loops 100 times. What is the probability that all 40 boxes will be filled in at the end? (Click on Reset and then Run to run it again.)