This is a bunch of functions and methods for performing some useful number- or math-based operations.
Overview
This is a bunch of functions and methods for performing some useful number- or math-based operations.
JavaScript API
dice()
Number.prototype.dice()
Number.prototype.fairmath()
Number.prototype.between()
Math.fairmath()
Usage notes
Configuration options
There are some configuration options you can mess with if you know what you're doing. Take a look at the unminified script for more.
Live demo
Demo Twee code:
:: Start
<<link "Roll 3d6...">><<set _roll to dice('3d6')>><<replace #diceroll>>You rolled _roll!<</replace>><</link>> @@#diceroll;@@