1.0.1 • Published 3 years ago

rnumjs v1.0.1

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

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)