Se7enSquared
10/18/2019 - 10:49 PM

Return random number in range between 1 & 10

uses the random method of the Math module to generate a sequence of numbers from 1-10

const max = 10;
const min = 1;
Math.floor(Math.random() * (max - min + 1) + min);