school-proj-npm-rdm-no
v2.0.0
Published
get a random number
Downloads
3
Readme
school-proj-npm-rdm-no
NPM random number school project.
To run this you can have to do this
First
Run "npm install school-proj-npm-rdm-no" to install your package.
Then import it and use it!
const rdmNr = require("school-proj-npm-rdm-no");
const lowest = 1;
const highest = 10;
const randomNum = rdmNr(lowest, highest);
console.log(randomNum); // Output: Random number between 1 and 10 (inclusive)
You can use this function by providing the lowest and highest values as arguments.