This is a small playground for my Roll.js library, which is designed to compute exact results for dice rolls of arbitrary complexity (rather than simulating several thousand rolls for an approximate answer).

Several things are visible to code written in the input pane:

The code won't run until you press the button, at which point the page's hash will also update to contain the code, so you can easily share links.

Some example rolls: