A physics simulation illustrating the inherent probabilistic nature of quantum mechanics