function getRandomIntegers(min, max, numIntegers) {
  const output = [];
  for (let i = 0; i < numIntegers; ++i) {
    output.push(Math.floor((max - min) * Math.random()) + min);
  }
  return output;
}
Generate a given number of random integers >= min and < max.

@param {number} min Lower bound, inclusive.
@param {number} max Upper bound, exclusive.
@param {number} numIntegers Number of random integers to get.
@return {number[]} The random integers.