HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

DiceRoller 0.6

This extension helps in using Vanilla for Play-by-Post games.
It enables the use of a new dice-roller function in the comments text, like #dice(3d6+2). It appends a random roll of the specified dice into the text and disables further edition of the comment for the author to avoid changing the results.
NOTE: You need PhP 4.0.1pl2 at least.
v0.4: Bug in the sum function repaired.
v0.4.1: Table updated to eliminate a bug for long dice descriptions.
v0.5: Support for different dice types mixed in the same roll; the roll-results may be shown with their associated dice-types, which is specially useful when they are sorted. Output is now XHTML 1.0 compliant.
v0.5.1: Support for configuring the default display options when the page is loaded.
v0.6: Support for user-defined dice names with negative, non-consecutive, or repeated values in the dice sides.