IRandomGenerator.ts 657 B

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