in reply to Re^3: Incrementing string arrays when used with foreach loops
in thread Incrementing string arrays when used with foreach loops

I completely agree that using shuffle is a superior solution, but I was trying to illustrate a use of rand, according to the OP's recipe:
c. The rand() function will be used to get a random card from the pack