UNPKG

gamekit-utils

Version:

Minimal, fast and useful utilities for randomness, array manipulation and math — built for games, UI logic and generative design.

7 lines (6 loc) 152 B
/** * Picks `n` unique random elements from the array. * * @throws if n > arr.length */ export declare function pickN<T>(arr: T[], n: number): T[];