Back to Problem Solutions forum
What's the meaning of following (I think, I'm missing something):
"You will be given the sequence of non-negative integer random numbers - if they are greater than necessary, trim them to required range by taking modulo 52, like in the Double Dice Roll task."
Is it (givenRandomNumber%52) for random index generation for swapping or some thing else? Any clarification appreciated. Thanks.
Modular arithmetic is something that every programmer should understand, as it is useful in a myriad of situations. I highly recommend becoming familiar with it. I would highly suggest the Code Abbey Wiki on Modular Arithmetic as a good starting point.
-- Christopher P. Matthews
Thanks Guy and Christopher :)