Yeah, it was an afterthought (partly for debug) but it seemed cool.
Basically, over the course of the 10,000 simulation runs, when a trial runs out of money before the end of the plan (a failure), I bump a counter associated with the year that the money ran out.
At the end, I go through the...