UNPKG

by-mput3

Version:

Learning Hexlet.io node.js project implementation.

6 lines (5 loc) 166 B
export default (max) => { // return random number from 1 to max included. const randomInteger = (Math.floor(Math.random() * max)) + 1; return randomInteger; };