Technically it is just wrapper for random.org API service.
Installation
npm install --save advanced-random
Usage
Simple usage example
const random = require('advanced-random');
random.integerGenerator().then(console.log).catch(console.log);
random.sequenceGenerator().then(console.log).catch(console.log);
random.stringGenerator().then(console.log).catch(console.log);
random.quotaChecker().then(console.log).catch(console.log);
Integer Generator
random.integerGenerator({
num: 15,
min: -1e8,
max: 148,
base: 16,
rnd: 'new'
}).then(console.log).catch(console.log);
Sequence Generator
random.sequenceGenerator({
min: 1,
max: 2,
rnd: 'new'
}).then(console.log).catch(console.log);
String Generator
random.stringGenerator({
num: 1,
len: 19,
digits: 'on',
upperalpha: 'on',
loweralpha: 'on',
unique: 'on',
rnd: 'new'
}).then(console.log).catch(console.log);
Quota Checker
random.quotaChecker({
ip: '127.0.0.1'
}).then(console.log).catch(console.log);
Visit https://www.random.org/clients/http/ for more detailed information.