2.0.1 • Published 4 years ago

genrannum v2.0.1

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

What is this

Generates random number in a given range

Installation

npm i genrannum --save

Usage

const r = require('genrannum');

r(method, n);

r('nomethod', 5) // Math.random() * 5

r('trunc', 5) // Math.trunc(Math.random() * 5)

r('floor', 5) // Math.floor(Math.random() * 5)

r('ceil', 5) // Math.ceil(Math.random() * 5)

r('round', 5) // Math.round(Math.random() * 5)
2.0.1

4 years ago

2.0.0

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago