Hacker News new | ask | show | jobs
by kyle_u 3815 days ago
In practice, for my game, I use a single positive signed int as the initial seed for the Scala/Scala.js PRNG (Amazingly, they implement the same algorithm), meaning only two billion or so possible games. If I re-seeded the PRNG each time I moved a card ordering, then the full [52!] shuffles could be generated. I only use initial seed, so that a given seed will always generate the same shuffle/deal order.
1 comments

Here's the critical issue: how do you re-seed? This is actually far, far more difficult than it sounds.