UNPKG

mh-rn-component

Version:

15 lines (12 loc) 449 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.randomBaseId = void 0; const randomBaseId = function () { let min = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1000; let max = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 9999; return Math.floor(Math.random() * (max - min)) + min; }; exports.randomBaseId = randomBaseId; //# sourceMappingURL=index.js.map