UNPKG

332 BTypeScriptView Raw
1import { Engine } from "../types";
2/**
3 * Shuffles an array in-place
4 * @param engine The Engine to use when choosing random values
5 * @param array The array to shuffle
6 * @param downTo minimum index to shuffle. Only used internally.
7 */
8export declare function shuffle<T>(engine: Engine, array: T[], downTo?: number): T[];