/** * Generates a random integer between min and max (inclusive). * * @param min - The minimum value (inclusive). * @param max - The maximum value (inclusive). * @returns A random integer in the range [min, max]. * * @throws {Error} If min or max is NaN. * @throws {Error} If min is greater than max. * @throws {Error} If min or max is not a safe integer. * * @example * // Generate random number between 1 and 10 * randomInt(1, 10); // 7 * * @example * // Generate random number between -5 and 5 * randomInt(-5, 5); // -2 * * @example * // Generate dice roll * randomInt(1, 6); // 4 * * @note Uses Math.random() for non-cryptographic randomness. * @note For cryptographic randomness, use crypto.randomInt() from Node.js crypto module. * * @complexity Time: O(1), Space: O(1) */ export declare function randomInt(min: number, max: number): number; //# sourceMappingURL=randomInt.d.ts.map