export function getRandomNumberFromRange(min: number, max: number){ if (min >= max) { throw new Error("The minimum value must be less than the maximum value"); } return Math.floor(Math.random() * (max - min + 1)) + min; }