gabwebdesign
10/12/2017 - 3:18 PM

mathRandom

mathRandom

// Returns a random integer between min (included) and max (included)

function getRandomInt(min, max) {
  return Math.floor(Math.random() * (max - min + 1)) + min;
}