I’ve tossed together a very simple example of what I’m getting at over at my website. Check out http://www.geekcavecreations.com/dieRoll2.htm and see if that’s what you’re looking for.
If you want a simpler version, without the breakdown, look at http://www.geekcavecreations.com/dieRoll.htm
Of course, any “bells & whistles” (e.g. a fancy page style, images of the dice, animations, etc.) would run into actual work and would need to be compensated for.
As an interesting side-note, “non-standard” dice can also be used here. For example, you can flip a coin 1,000 times (1000d2), or roll a three-sided die (1d3), or roll the dreaded Zocchihedron (100-sided die). Just don’t use numbers less than one for the number of sides for the dice, or for the number of dice. Doing so will cause unintended results. The only thing that I didn’t program for is the rare instance where the modifier is also a die roll. That must be factored separately at this point.