first commit
This commit is contained in:
+20
@@ -0,0 +1,20 @@
|
||||
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
|
||||
Reference in New Issue
Block a user