IRandomGenerator.ts 734 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. // eslint-disable-next-line @typescript-eslint/ban-ts-comment
  2. // @ts-ignore
  3. import type * as Chance from 'chance';
  4. export interface IRandomGenerator {
  5. /**
  6. * @returns {number}
  7. */
  8. getMathRandom (): number;
  9. /**
  10. * @returns {Chance.Chance}
  11. */
  12. getRandomGenerator (): Chance.Chance;
  13. /**
  14. * @param min
  15. * @param max
  16. * @returns {number}
  17. */
  18. getRandomInteger (min: number, max: number): number;
  19. /**
  20. * @param length
  21. * @param pool
  22. * @returns {string}
  23. */
  24. getRandomString (length: number, pool?: string): string;
  25. /**
  26. * @returns {string}
  27. */
  28. getInputSeed (): string;
  29. /**
  30. * @returns {string}
  31. */
  32. getRawSeed (): string;
  33. }