2.0.6 • Published 7 years ago

rollme v2.0.6

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

rollme

var rollme = require('./rollme');  
var roll = rollme.roll('2d4', 3, true);

The first parameter is the quantity and type of dice to roll, the second is an optional modifier. The third is if you'll allow negative modified results (this defaults to false).

The result array you get back looks like this...

roll[0] // modified result  
roll[1] // unmodified result (if you omitted the modifier this is the same as roll[0])  
roll[2] // an array containing all the individual die rolls  

There's also a simple integer generator included at rollme.getRandInt().

Tabletop forever or a reasonable facsimile thereof!

-JAZ

2.0.6

7 years ago

2.0.5

7 years ago

2.0.4

7 years ago

2.0.3

7 years ago

2.0.2

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.0.0

7 years ago