danielhutt / gamblers-ruin Goto Github PK
View Code? Open in Web Editor NEWSimulates a gambler who start with $stake and place fair $1 bets until she goes broke or reach $goal. Keeps track of the number of times she wins and the number of bets she makes. Run the experiment N times, averages the results, and prints them out.