number-generator-random-npm
v1.0.4
Published
One of the function of this npm is: generarNumeroAleatorio(min, max) - This function returns a random integer between min and max (inclusive).
Downloads
4
Readme
How to install
npm i number-generator-random-npm
How to use number-generator-random-npm?
One of the function of this npm is:
generarNumeroAleatorio(min, max) //This function returns a random integer between min and max (inclusive).
What means min and max?
The parameters "min" and "max" are numbers. They represent the range in which the generated number will be placed. The generated number can be any value. Min is the minimun number and max must be the maximun number to be randomized.
Example:
const numberGenerator = require('number-generator-random-npm');
const generatedNumber = numberGenerator(10, 25);
console.log(generatedNumber) // Return a random number between 10 and 25.