Dice combinators for javascript, Apache License 2.0.
dicec.js is written in Literate Coffeescript so you might as well read the file.
I wrote this a while ago. It needs to be cleaned up and documented.
# Roll three six-sided die and sum them.
# 3d6
d(6).repeat(3).sum()