Generate one or more random unique numbers in a range.
Install
$ npm install --save node-random-number
Usage
const random = // get a random integer between 0 ~ 100 (100 in not includede)//=> [58] //=> [7] //=> [2, 37, 87]
API
nodeRandomNumber(opts)
opts
start
Type: number
Default: 0
The start of the range, included.
end
Type: number
Default: 100
The end of the range, not included.
count
Type: number
Default: 1
How many numbers you wanna get, should be smaller than the range length.
License
MIT © EGOIST