I just realized something interesting about rolling dice online. Forgive my geek side for showing for a moment.
I've been messing with modules for JibbyBot (a phenny bot for IRC), trying to pick up a little Python here and there, and something I thought to possibly implement is a dice-rolling module that would let you specify die-rolls in D&D format. I suppose a brief tutorial is in order.
In Dungeons and Dragons (D&D), there are several different polyhedral dice. When the game wants you to roll a specific die, it will specify the number of sides on the die to roll. So for the frequent opportunity you get to roll a 20-sided die, the game will specify this with a shorthand syntax, "d20", which is really short for "1d20", meaning to roll the 20-sided die one time. If the game needs you to roll a 6-sided die three times, the shorthand would look like "3d6". There are also things that let you add or subtract a constant value from the roll, like in "3d6+2", but that's not quite relevant for the interesting thought I have come across....
more