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);