/** * Returns `true` with the provided probability from `0` to `1`. * * @example * ```ts * const shouldRun = getFrequencyValue(0.25); * ``` */ declare const getFrequencyValue: (frequency: number) => boolean; /** * Returns `true` more often than `false`. * * @example * ```ts * const value = getMajorRandomBool(); * ``` */ declare const getMajorRandomBool: () => boolean; /** * Returns `true` less often than `false`. * * @example * ```ts * const value = getMinorRandomBool(); * ``` */ declare const getMinorRandomBool: () => boolean; /** * Returns a uniformly random boolean. * * @example * ```ts * const value = getRandomBool(); * ``` */ declare const getRandomBool: () => boolean; /** * Picks a random element from the provided array. * * @example * ```ts * const fruit = getRandomChoice(['apple', 'banana', 'orange']); * ``` */ declare const getRandomChoice: (arr: T[]) => T; /** * Returns a random floating-point number between `min` and `max`. * * @example * ```ts * const value = getRandomFloat(1, 10); * ``` */ declare const getRandomFloat: (min?: number, max?: number) => T; /** * Returns a random integer between `min` and `max`. * * @example * ```ts * const value = getRandomInt(1, 10); * ``` */ declare const getRandomInt: (min?: number, max?: number) => T; /** * Creates an array filled with `null` values using a random length. * * @example * ```ts * const items = getRandomSizeArray(2, 5); * ``` */ declare const getRandomSizeArray: (min?: number, max?: number) => unknown[]; export { getFrequencyValue, getMajorRandomBool, getMinorRandomBool, getRandomBool, getRandomChoice, getRandomFloat, getRandomInt, getRandomSizeArray };