feat: initial commit - Phase 1 & 2 core features

This commit is contained in:
hiderfong
2026-04-22 17:07:33 +08:00
commit 1773bda06b
25005 changed files with 6252106 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
//#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
export { generateId, getRandomInt };
//# sourceMappingURL=rand.mjs.map