rand.d.ts 372 B

123456789101112
  1. /**
  2. * @deprecated Use `useId` `useIdInjection` instead
  3. * Generate random number in range [0, 1000]
  4. * Maybe replace with [uuid](https://www.npmjs.com/package/uuid)
  5. */
  6. export declare const generateId: () => number;
  7. /**
  8. * @deprecated
  9. * Generating a random int in range (0, max - 1)
  10. * @param max {number}
  11. */
  12. export declare const getRandomInt: (max: number) => number;