This is a simulation of a betting system where a player can bet on red  or black. The odds of winning isn't important as long as the player keeps  doubling the bet every time he loses.