Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
philihp committed Dec 15, 2023
1 parent c36f6cf commit 5e5b306
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -26,7 +26,7 @@ const shuffledDeck = shuffle(sortedDeck)
// [ '3♥', '3♦', 'K♥', '6♦', 'J♣', '5♠', 'A♠', ...
```

The named `shuffle` export seen above uses `Math.random` for entropy. If you import it without the brackets, you'll get a deterministic shuffler which takes an int for its random seed (e.g. `Date.now()`).
The named `shuffle` export seen above uses `Math.random` for entropy. You can also create a a deterministic shuffler which takes an int for its random seed (e.g. `Date.now()`).

```js
import { createShuffle } from 'fast-shuffle' // note the change
Expand Down

0 comments on commit 5e5b306

Please sign in to comment.