random-number-range
v1.0.1
Published
get random number from range
Downloads
5
Readme
Random Number Range
A simple JavaScript module to generate a random integer within a specified range.
Installation
npm install random-number-range
Usage
const randomNumberRange = require('random-number-range');
// Generates a random number between 0 and 9 (inclusive).
const result = randomNumberRange();
// Generates a random number between 5 and 15 (inclusive).
const customResult = randomNumberRange({ min: 5, max: 15 });