mirror of
https://github.com/javascript-obfuscator/javascript-obfuscator
synced 2026-08-09 12:42:29 +00:00
33 lines
578 B
TypeScript
33 lines
578 B
TypeScript
import { 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 {number}
|
|
*/
|
|
getSeed (): number;
|
|
}
|