function generateRandomInteger(max) {
  return Math.floor(Math.random() * max) + 1;
}
@description Generate a number between 0 and max included.
@param {number} max - The upper bound included.
@returns {number} - Return a random value.
@example

const rand = generateRandomInteger(1000);