A simulation of a Markov Chain with a reflecting boundary which resets to an initial value when the boundary is reached. For a explanation with context, theory, explanation, and problems to work see
http://www.math.unl.edu/~sdunbar1/MathematicalFinance/Lessons/FirstStepAnalysis/CashManagement/cashmanagement.xml