@m31271n/random-number
v1.0.0
Published
Get a number randomly.
Downloads
5
Readme
random-number
Get a number randomly.
Install
$ npm install @m31271n/random-number
Usage
import randomNumber from '@m31271n/random-number'
randomNumber({
min: 1
max: 1000,
float: true,
includeMax: true
})
API
randomNumber(options)
| property | type | description |
| ------------ | ------- | --------------------------- |
| min
| Number | minimum value |
| max
| Number | maximum value |
| float
| Boolean | float or integer |
| includeMax
| Boolean | include maxmum value or not |