123456789101112131415161718192021222324252627282930313233343536373839 |
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
- // @ts-ignore
- import type * as Chance from 'chance';
- export interface IRandomGenerator {
- /**
- * @returns {number}
- */
- getMathRandom (): number;
- /**
- * @returns {Chance.Chance}
- */
- getRandomGenerator (): Chance.Chance;
- /**
- * @param min
- * @param max
- * @returns {number}
- */
- getRandomInteger (min: number, max: number): number;
- /**
- * @param length
- * @param pool
- * @returns {string}
- */
- getRandomString (length: number, pool?: string): string;
- /**
- * @returns {string}
- */
- getInputSeed (): string;
- /**
- * @returns {string}
- */
- getRawSeed (): string;
- }
|