rnum
v1.0.0
Published
Generate a random number of a given length
Downloads
29
Readme
rnum
Generate a random number of a given length
Installation
npm install rnum --save
Usage
rnum(1)
will never return 0
const rnum = require('rnum');
rnum(1);
//=> 5
rnum(1);
//=> 6
rnum(1);
//=> 9
rnum(2);
//=> 56
rnum(4);
//=> 9408
rnum(4);
//=> 3004
rnum(6);
//=> 586509
rnum(9);
//=> 965090084
rnum(12);
//=> 109654480023
License
MIT © Daniel Eckermann