random-unique-number
Install
npm install --save random-unique-number
Generate unique number
const RandomNumber = require('random-unique-number');
// Generate unique number based on datetime
let number = RandomNumber.getUnique();
// Generate random number
let number = RandomNumber.getRandom();