random-minmax

0.1.1 • Public • Published

How to use:

const getRandomMinMax = require('random-minmax');

const random = getRandomMinMax({min: -100, max: 100})
console.log(random) // -100 upto 100

Props:

min: 0 || -100 || 100 // either integer or float
max: 0 || -100 | 100 // same as min but must be greater
double: true || false // return double data type 

Readme

Keywords

Package Sidebar

Install

npm i random-minmax

Weekly Downloads

1

Version

0.1.1

License

ISC

Unpacked Size

1.8 kB

Total Files

3

Last publish

Collaborators

  • asharifauzan