/** * Generates a random floating-point number between min and max. * * @param min - The minimum value (inclusive). * @param max - The maximum value (exclusive). * @param decimals - Number of decimal places (default: 2). * @returns A random float in the range [min, max). * * @throws {Error} If min or max is NaN. * @throws {Error} If decimals is NaN. * @throws {Error} If min is greater than or equal to max. * @throws {Error} If decimals is negative or not an integer. * * @example * // Generate random float between 0 and 1 with 2 decimals * randomFloat(0, 1); // 0.42 * * @example * // Generate random float with 4 decimals * randomFloat(0, 100, 4); // 73.2846 * * @example * // Generate random temperature * randomFloat(-10.5, 35.5, 1); // 18.3 * * @note Uses Math.random() for non-cryptographic randomness. * * @complexity Time: O(1), Space: O(1) */ export declare function randomFloat(min: number, max: number, decimals?: number): number; //# sourceMappingURL=randomFloat.d.ts.map