[go: up one dir, main page]

random-int-inclusive

1.0.1 • Public • Published

random-int-inclusive

A Node.js package that returns random integer between two values inclusive at both the minimum and the maximum.

Usage

First, install the package using npm:

npm install random-int-inclusive --save

Then, require the package and use it like so:

var getRandomIntInclusive = require('random-int-inclusive');

console.log(getRandomIntInclusive(0, 1));
console.log(getRandomIntInclusive(0, 1000));
console.log(getRandomIntInclusive(10, 1000));

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i random-int-inclusive

Weekly Downloads

1

Version

1.0.1

License

MIT

Last publish

Collaborators

  • yehtutwin