The program throws "darts" at a wall and calculates the ratio between hits and all throws.
The program scatters "toothpicks" on the ground and calculates the ratio between those intersecting panel borders and all throws.
The program throws a block at another and counts the collisions.
All those simulations allow for some control.