@lodestar/beacon-node
Version:
A Typescript implementation of the beacon chain
10 lines • 328 B
TypeScript
/**
* Randomize an array of items without mutation.
* Note: Uses Math.random() as entropy source, use for non-critical stuff
*/
export declare function shuffle<T>(arr: T[]): T[];
/**
* Return one random item from array
*/
export declare function shuffleOne<T>(arr: T[]): T | undefined;
//# sourceMappingURL=shuffle.d.ts.map