random-number-between-two-numbers

1.0.1 • Public • Published

random-number-between-two-numbers

generate a random number between two numbers (inclusive)

usage

npm i random-number-between-two-numbers

or

npm i -D random-number-between-two-numbers

const rnbtn = require('random-number-between-two-numbers')
rnbtn(12, 34);	// will generate a random number between 12 and 34 (including 12 and 34)

Pass how many decimal places the random number should have (optional)

const rnbtn = require('random-number-between-two-numbers')
rnbtn(12, 34, 5);	// will generate a random number between 12.00000 and 34.00000 (including 12.00000 and 34.00000)

Readme

Keywords

none

Package Sidebar

Install

npm i random-number-between-two-numbers

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

2.44 kB

Total Files

4

Last publish

Collaborators

  • paul-browne