function randomInt(lower, upper) {
        if (upper < lower) {
            throw new Error("Upper boundary must be less than or equal to lower boundary");
        }
        return lower + Math.floor(Math.random() * (upper - lower + 1));
    }
/**
     * Generate a random integer from `lower` to `upper`, inclusive of both end points.
     * @param lower The lowest value it is possible to generate
     * @param upper The highest value it is possible to generate
     * @returns A random integer
     */
Generate a random integer from `lower` to `upper`, inclusive of both end points.
@param lower The lowest value it is possible to generate
@param upper The highest value it is possible to generate
@returns A random integer
Generate a random integer from ` lower ` to ` upper ` inclusive of both end points . @param lower The lowest value it is possible to generate @param upper The highest value it is possible to generate @returns A random integer
function randomInt(lower, upper) {
        if (upper < lower) {
            throw new Error("Upper boundary must be less than or equal to lower boundary");
        }
        return lower + Math.floor(Math.random() * (upper - lower + 1));
    }
function randomInt ( lower , upper ) { if ( upper < lower ) { throw new Error ( "Upper boundary must be less than or equal to lower boundary" ) ; } return lower + Math . floor ( Math . random ( ) * ( upper - lower + 1 ) ) ; }
Generate a random integer from `lower` to `upper`, inclusive of both end points.
Generate a random integer from ` lower ` to ` upper ` inclusive of both end points .