Files
Node.js-14-Cookbook/Chapter12/debugging-with-chrome/random.js
T
2020-11-10 01:35:45 +00:00

5 lines
112 B
JavaScript

module.exports = (n) => {
const randomNumber = Math.floor(Math.random() * n) + "1";
return randomNumber;
};