Log inGet started
World

Shuffle and Deal: Card Decks, Hands and Table Kit

Branchmain
Branchesmain
Commit7c83d7128a

README.md

cardsKit.shuffle

A fair, repeatable shuffle: Fisher-Yates over the engine's Random (xoshiro128** computed with bit32), so the same seed gives the same order on every screen, platform and computer, and every order is equally likely. Shuffle.shuffle(list, seed), Shuffle.shuffleInPlace(list, rng), Shuffle.order(n, seed), Shuffle.rng(seed) (numbers or strings) and Shuffle.hash(string). Used by the game model for every shuffle and deal.