/** * Generates a random sequence of characters from a given alphabet. * * @param length - The length of the sequence to generate. * @param alphabet - The alphabet to use (default: alphanumeric). * @returns A random sequence of the specified length. * * @throws {Error} If length is NaN. * @throws {Error} If length is negative or not an integer. * @throws {Error} If alphabet is empty. * * @example * // Generate random alphanumeric sequence * randomSequence(8); // 'a3F9kL2p' * * @example * // Generate random numeric code * randomSequence(6, '0123456789'); // '482719' * * @example * // Generate random uppercase letters * randomSequence(4, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'); // 'HQWZ' * * @note Uses Math.random() for non-cryptographic randomness. * @note For cryptographic randomness, use generateRandomString from cryptoFunctions. * * @complexity Time: O(n), Space: O(n) where n is length */ export declare function randomSequence(length: number, alphabet?: string): string; //# sourceMappingURL=randomSequence.d.ts.map