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 ability to put in custom dice expressions, adding a great deal of flexibility at the cost of speed. So if you do a million trials, it's going to look like it's locked up. Just leave it be for a few minutes.
3. Make sure you add at least one attack. The way it works is it just cycles through each attack, in order. Ideally what you'd do is get a representative amount of damage for each member of your party.