This is a monte carlo simulation showing how simulated statistics of a gambler and his chances to win in different scenarios.
To read more about Monte Carlo Simulation:
https://en.wikipedia.org/wiki/Monte_Carlo_method
To read about the tutorial of the above program: