This is a general purpose dice library that was built for roguelikes. Of course it can be utilized by other games for dice rolls. The code is currently hosted on Github
Please refer to the forum post if you have any issues.
The documentation is located here.