/** * Shuffles an array * @returns a new array with the same elements in a random order */ export declare function shuffle(array: T[]): T[]; /** * * @returns an array of integers in range [0..size-1] in random order */ export declare function randomizedOrder(size: number): number[]; /** * Swaps elements of an array in place */ export declare function swap(array: T[], i: number, j: number): void; /** * @example * ```ts * getCartesianProduct([ [1, 2], [3, 4], ]); // => [[1, 3], [1, 4], [2, 3], [2, 4]] * ``` * @returns an array containing all the combinations of one element from each array */ export declare function getCartesianProduct(arrays: T[][]): T[][]; //# sourceMappingURL=arrays.d.ts.map