dice-exercise

1.0.3 • Public • Published

exports.diceroller = function(min, max){ return Math.floor(Math.random() * (max - min) + min); }

In order to make the function work, you have to input the minimum and the maximum number. For a six faced dice the min and max values are 1 and 7.

Readme

Keywords

Package Sidebar

Install

npm i dice-exercise

Weekly Downloads

1

Version

1.0.3

License

MIT

Unpacked Size

708 B

Total Files

3

Last publish

Collaborators

  • cristian_messina