npm.io
1.0.1 • Published 5 years ago

rnumjs

Licence
ISC
Version
1.0.1
Deps
0
Size
1 kB
Vulns
0
Weekly
0

What is this?

This is a light-weight module which you can generate random numbers easily.

Installation

npm i rnumjs --save
// or
yarn add rnumjs

Usage

const rnumjs = require('rnumjs')
// or
import { randomNumber } from 'rnumjs'

rnumjs.randomNumber(min, max, dec)
  • min number Lower bound (optional, default 0)
  • max number Higher bound (optional, default 10)
  • dec number Rounds number to decimals (optional, default 0)

Keywords