An interesting way of calculating π is to use a technique known as Monte Carlo simulation.