@lucid-softworks/array-shuffle
v0.1.0
Published
Shuffle an array immutably with an injectable random source.
Maintainers
Readme
@lucid-softworks/array-shuffle
Return an immutable Fisher-Yates shuffle. Inject a random source for seeded or deterministic behavior.
import { shuffle } from "@lucid-softworks/array-shuffle";
shuffle(cards, seededRandom);