@mathyasp/random-number
v1.0.0
Published
Random number generator
Downloads
3
Readme
@mathyasp/random-number
A simple, lightweight JavaScript utility for generating random numbers within a specified range.
Installation
npm install @mathyasp/random-number
Usage
const generateRandomNumber = require('@mathyasp/random-number');
// Generate a random number between 0 and 100 (inclusive)
console.log(generateRandomNumber());
// Generate a random number between 10 and 50 (inclusive)
console.log(generateRandomNumber(10, 50));