Skip to content

Simulates 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.

Notifications You must be signed in to change notification settings

DanielHutt/gamblers-ruin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

gamblers-ruin

Simulates 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.

About

Simulates 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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published