"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Generate a random number in a certain range
*
* @param from The inclusive number from
* @param to The inclusive number to
* @category math
* @module getRandomInt
*/
var getRandomInt = function (from, to) {
var min = Math.ceil(from);
var max = Math.floor(to);
// The maximum is inclusive and the minimum is inclusive
return Math.floor(Math.random() * ((max - min + 1) + min));
};
exports.default = getRandomInt;
Source