fisher-yates-crypto
Fisher-Yates Shuffle Implementation in JavaScript with default cryptographically strong random number generator. Designed to be a drop-in replacement for Math.random. Can be used with Node or in a browser.
Requirements
- NodeJS 6+
Installation
npm install fisher-yates-crypto --save
Usage
const shuffleCrypto = const deck = 'A' 'B' 'C' 'D'const shuffledDeck =
const randomizer = { return 06361052929345046};const shuffleCrypto = const deck = 'A' 'B' 'C' 'D'const shuffledDeck =