Haven't really got much to say here except for the fact that... well, have this node_module:
https://www.npmjs.com/package/xdicey
https://github.com/ev1l0rd/xdicey
What it does
In case you aren't familiar: I am the maintainer of the DiscordJS bot known as Pedro. One of the bots commands is xdicey. xdicey basically allows you to throw an x sided dice y amount of times and then gives you the total sum of the dice. This particular module/function is the backend for xdicey.
Since the code for this program could be useful for other programs, I have made it available as a node module. Usage should be simple, just check the Examples part in the readme. Here's a little example on how you could use it:
https://runkit.com/embed/wjny8dores7n
Enjoy!
https://www.npmjs.com/package/xdicey
https://github.com/ev1l0rd/xdicey
What it does
In case you aren't familiar: I am the maintainer of the DiscordJS bot known as Pedro. One of the bots commands is xdicey. xdicey basically allows you to throw an x sided dice y amount of times and then gives you the total sum of the dice. This particular module/function is the backend for xdicey.
Since the code for this program could be useful for other programs, I have made it available as a node module. Usage should be simple, just check the Examples part in the readme. Here's a little example on how you could use it:
https://runkit.com/embed/wjny8dores7n
Enjoy!