Banach Matchbox Problem

For my Probability and Statistics classes I wrote a small application that simulates a famous Banach Matchbox Problem: “Suppose a mathematician carries two matchboxes at all times: one in his left pocket and one in his right. Each time he needs a match, he is equally likely to take it from either pocket. Suppose he reaches into his pocket and discovers for the first time that the box picked is empty. If it is assumed that each of the matchboxes originally contained N matches, what is the probability that there are exactly K matches in the other box?”You can download our application for Windows, Linux and MacOS 64-bit only. Enjoy!