@woosh/meep-engine
Version:
Pure JavaScript game engine. Fully featured and production ready.
8 lines • 367 B
TypeScript
/**
* @template T
* @param {function} random if you don't have a custom RNG, you can always pass {@link Math.random} instead
* @param {T[]} array
* @returns {T|undefined} returns undefined only if that value is in the array or if array is empty
*/
export function randomFromArray<T>(random: Function, array: T[]): T;
//# sourceMappingURL=randomFromArray.d.ts.map