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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.3
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.3
    2
  • 1.0.2
    0

Package Sidebar

Install

npm i dice-exercise

Weekly Downloads

2

Version

1.0.3

License

MIT

Unpacked Size

708 B

Total Files

3

Last publish

Collaborators

  • cristian_messina