/** * Generates a random integer between min and max, inclusive. * @param min - The minimum value. * @param max - The maximum value. * @returns A random integer between min and max. */ export declare function randomNumber(min: number, max: number): number; /** * Generates a random string of a specified length. * @param length - The length of the string. * @returns A random string of the given length. */ export declare function randomString(length: number): string; /** * Generates a random integer between min and max, inclusive. * @param min - The minimum value. * @param max - The maximum value. * @returns A random integer between min and max. */ export declare function getRandomInt(min: number, max: number): number; /** * Generates a random float between min and max. * @param min - The minimum value. * @param max - The maximum value. * @returns A random float between min and max. */ export declare function getRandomFloat(min: number, max: number): number; /** * Chooses a random element from an array. * @param arr - The array to choose from. * @returns A random element from the array. */ export declare function getRandomElement(arr: T[]): T; /** * Generates a random boolean value. * @returns A random boolean. */ export declare function randomBoolean(): boolean; /** * Generates a random date between two given dates. * @param startDate - The start date. * @param endDate - The end date. * @returns A random date within the range. */ export declare function randomDate(startDate: Date, endDate: Date): Date; /** * Generates a random hex color code. * @returns A random hex color code. */ export declare function randomColor(): string; /** * Generates a random password with a specified length and optional complexity. * @param length - The length of the password. * @param includeSpecialChars - Whether to include special characters. * @returns A random password. */ export declare function randomPassword(length: number, includeSpecialChars?: boolean): string; /** * Chooses a random item from an array with weighted probabilities. * @param items - Array of items with their weights. * @returns A randomly chosen item based on weights. */ export declare function randomWeightedItem(items: { item: T; weight: number; }[]): T; /** * Selects a random winner from an array of participants. * @param participants - An array of participant names or objects. * @returns A randomly chosen participant. */ export declare function selectRandomWinner(participants: T[]): T; /** * Selects a specified number of random winners from an array of participants. * @param participants - An array of participant names or objects. * @param numberOfWinners - The number of winners to select. * @returns An array of randomly chosen winners. */ export declare function selectMultipleWinners(participants: T[], numberOfWinners: number): T[]; /** * Selects a random winner from an array of participants with weights. * @param participants - An array of participants with weights. * @returns A randomly chosen participant based on weights. */ export declare function selectWeightedWinner(participants: { item: T; weight: number; }[]): T; /** * Generates a random date between two dates. * @param startDate - The start date of the range. * @param endDate - The end date of the range. * @returns A random date within the specified range. */ export declare function getRandomDate(startDate: Date, endDate: Date): Date; /** * Generates a random hex color code. * @returns A random hex color code. */ export declare function getRandomHexColor(): string; /** * Generates a random password with custom rules. * @param length - The length of the password. * @param options - Custom options for the password. * @returns A random password meeting the specified rules. */ export declare function generateCustomPassword(length: number, options?: { includeUppercase?: boolean; includeNumbers?: boolean; includeSymbols?: boolean; }): string; /** * Generates a random number based on a Gaussian distribution. * @param mean - The mean of the distribution. * @param stddev - The standard deviation of the distribution. * @returns A random number following a Gaussian distribution. */ export declare function getRandomGaussian(mean: number, stddev: number): number;