This person, like many of you, reflected on the possibility of using roll-die as a helper. No, I won't tell you what's wrong with it. I will suggest that you can observe one problem if you update roll-dice to print a short note each time it is called. We can improve the procedure with an appropriate let . When you want to define a recursive local procedure, use letrec .
Lab Do the lab .
Filled in the details. Back to Simulation . On to Procedures as Values . This means that they are rarely proofread and may contain bad grammar and incorrect details. Feel free to contact me with any suggestions for changes.