mh-rn-component
Version:
6 lines • 306 B
JavaScript
export 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;
};
//# sourceMappingURL=index.js.map