One way to utilize code in a math classroom is to simulate an experiment. Since probability typically falls at the end of year, check out different ways you can simulate experiments using Scratch.
Spinner: Lesson Coming Soon
Dice Roll: Lesson Coming Soon
Bottle Flip: Lesson Coming Soon
The next coin flip experiment simulates 100 coin flips in a matter of seconds. Using this type of technology enhances the capability of the learning that can take place in a classroom as it saves time and gives students a 21st Century Application to creation.