UNPKG

@woosh/meep-engine

Version:

Pure JavaScript game engine. Fully featured and production ready.

8 lines 334 B
/** * Randomly re-orders items in-place * @template T * @param {function():number} random random number generator; can use Math.random. Must return a value between 0 and 1 * @param {T[]} array what to shuffle */ export function array_shuffle<T>(random: () => number, array: T[]): void; //# sourceMappingURL=array_shuffle.d.ts.map