/**
 * A typeguard for a number with the added check that the number is an integer.
 * @param value The value to check.
 * @returns True if the value is a number and an integer, false otherwise.
 */
export function isInteger(value) {
    return !Number.isNaN(Number(value)) && Number.isInteger(value);
}
/**
 * A typeguard for a number with added checks that the number is an integer and is greater to zero.
 * @param value The value to check.
 * @returns True if the value is a number, an integer, and greater than zero, false otherwise.
 */
export function isPositiveInteger(value) {
    return isInteger(value) && value > 0;
}
/**
 * Returns a random integer between min (inclusive) and max (exclusive).
 * @param min The minimum value (inclusive).
 * @param max The maximum value (exclusive). Defaults to 1000000.
 * @returns A random integer between min and max.
 */
export function getRandomInt(min = 0, max = 1000000) {
    return Math.floor(Math.random() * (max - min + 1)) + min;
}
//# sourceMappingURL=NumberUtils.js.map