[45 Card Shuffler] Doesnt Random mean different results?

Back to Problem Solutions forum

mattshu67     2017-07-15 04:14:32

My code reads the integer, and if it's greater than 52, then take the modulus of 52. Use that to generate a number to it from zero. Use that number as the index of the swap. Unless I understood it wrong (probably) wouldn't the random value mean a different shuffle every time?

mattshu67     2017-07-15 04:20:36

Nevermind. The question emphasized using Random values so I got confused...

Please login and solve 5 problems to be able to post at forum