jsDice is a simple yet flexible dice roller for roleplaying games. It is fully written in client-side javascript, which means that you can use it offline. For more information please use a javascript-enabled browser and click on the help link.
jsDice is open source, distributed under the FreeBSD license, included in the beginning of this .html file (view source to see it).