Ok, here's the program, with a few caveats.
1. It's quick and dirty. There's no error checking in this at all. If you tell it to do "purple" trials, it will yell at you and then crash.
2. In my trials above, I didn't actually do anything sophisticated for the dice. For this, I've added the...