import { getRandomFloatingNumber, getRandomInteger } from "./internal/random.mjs"; //#region src/random.d.ts /** * Get a random boolean * * @returns Random boolean */ declare function getRandomBoolean(): boolean; /** * Get a random string of characters with a specified length * * @param length Length of random string * @param selection String of characters to select from _(defaults to lowercase English alphabet)_ * @returns Random string of characters */ declare function getRandomCharacters(length: number, selection?: string): string; /** * Get a random hexadecimal color * * @param prefix Prefix the color with `#`? _(defaults to `false`)_ * @returns Random hexadecimal color string in the format `(#)RRGGBB` */ declare function getRandomColor(prefix?: boolean): string; /** * Get a random hexadecimal character * * @returns Random hexadecimal character from `0-9` and `A-F` */ declare function getRandomHex(): string; /** * Get a random item from an array * * @param array Array to get a random item from * @returns Random item from the array, or `undefined` if unable to retrieve one */ declare function getRandomItem(array: Value[]): Value | undefined; /** * Get an amount of random items from an array * * @param array Array to get random items from * @param amount Amount of items to return * @returns Array of random items */ declare function getRandomItems(array: Value[], amount: number): Value[]; /** * Get a shuffled array * * @param array Array to get random items from * @returns Shuffled version of the original array */ declare function getRandomItems(array: Value[]): Value[]; //#endregion export { getRandomBoolean, getRandomCharacters, getRandomColor, getRandomFloatingNumber as getRandomFloat, getRandomHex, getRandomInteger, getRandomItem, getRandomItems };