R code for the Gambler's Ruin simulation
Completion requirements
(from Lecture 18 on random walks. It's not intended as an exemplar of elegant R programming, but feel free to experiment with it and modify however you like.)
Click RcodeGamblersRuin2021.R link to view the file.