1.0.3 • Published 6 years ago

random-await v1.0.3

Weekly downloads
3
License
ISC
Repository
github
Last release
6 years ago

random

Get random numbers based on your settings.

NPM Build Status JavaScript Style Guide

Install

npm install --save random-await

Usage

const random = require('random-await')

// quick start
random(min, max, digit)
random(2, 3) // [2, 3), get 2.56
random(2, 3, 5) // [2, 3), get 2.56789



// normal
random({
    min: 2, //min number
    max: 3, //max number
    digit: 5, //decimal digits
    left: true, //contain min number
    right: false //not contain max number
})

License

MIT © stephen

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago