News for hackers. Stuff that matters.
Re:Deck.of.cards by pkstn on Wednesday April 12, 2023 @10:26AM (#35540258)
It's fisher-yates with multiple iterations, so should be pretty random
Re:Deck.of.cards by graderjs on Wednesday April 12, 2023 @10:53AM (#35540736)
Oh, I don't care how random it is. My interest is when is it random. Do you only shuffle the deck when "shuffle" is performed, and then the shuffled order is preserved until: cards are (re-)moved; deck is shuffled again; etc? (I.e "real world" model).

Or do you shuffle the remaining hidden deck multiple times (so, not when shuffle is explicitly performed, but on other occasions, for example; at intervals; or, after someone pics the top card; etc)?

Re:Deck.of.cards by pkstn on Wednesday April 12, 2023 @12:08PM (#35542010)
Oh, only when pressing shuffle. In the new version in multiplayer mode the order is kept on server-side so that players can't cheat..