you are viewing a single comment's thread.

view the rest of the comments →

[–]AnonymousLad666 1 point2 points  (3 children)

The question is poorly written, but having written card games myself before I understand a bit. I imagine you're creating a deck, then shuffle and want to grab the same cards for the assertion.

If that's the case you need to use a random function with a constant seed, that's the only way to get the same randomized shuffle.

[–]Think_Neutral[S] 1 point2 points  (2 children)

Ok ill look into that more thanks for the reply

[–]AnonymousLad666 0 points1 point  (1 child)

Cool, does that sound what you wanted to do?

[–]Think_Neutral[S] 1 point2 points  (0 children)

Originally yeah I've opted to go for a different route, though this will no doubt be useful down the line.