Files
SingBox-Gopanel/frontend/admin/node_modules/element-plus/lib/utils/rand.js
CN-JS-HuiBai db7f1ba82f
Some checks failed
build / build (api, amd64, linux) (push) Failing after -51s
build / build (api, arm64, linux) (push) Failing after -52s
build / build (api.exe, amd64, windows) (push) Failing after -51s
使用VUE重构项目
2026-04-20 00:19:11 +08:00

20 lines
619 B
JavaScript

Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
//#region ../../packages/utils/rand.ts
/**
* @deprecated Use `useId` `useIdInjection` instead
* Generate random number in range [0, 1000]
* Maybe replace with [uuid](https://www.npmjs.com/package/uuid)
*/
const generateId = () => Math.floor(Math.random() * 1e4);
/**
* @deprecated
* Generating a random int in range (0, max - 1)
* @param max {number}
*/
const getRandomInt = (max) => Math.floor(Math.random() * Math.floor(max));
//#endregion
exports.generateId = generateId;
exports.getRandomInt = getRandomInt;
//# sourceMappingURL=rand.js.map