/** * Generates random samples from a Cauchy distribution. * * @param {number} median - Location parameter (median of the distribution). * @param {number} gamma - Scale parameter (dispersion of the distribution, must be > 0). * @param {number|Array|null} [size=null] - The shape of the output: * - If `null`, a single value is returned. * - If a number, a 1D array of the specified size is returned. * - If an array (e.g., [m, n]), a multidimensional array of the specified shape is returned. * @throws {Error} Throws an error if: * - The `size` parameter is not a number, an array or null. * - The gamma parameter is not positive. * @returns {number|Array} A single value, an array, or a multidimensional array of random values from the Cauchy distribution. */ export function cauchy(median: number, gamma: number, size?: number | any[] | null): number | any[];