Looks like you trying to create and shuffle a deck. First thing I would do is create the deck with two nested loops. The outer loop can handle the suits (the 4 you mention) and the inner loops the rank (1-13).
After you have created it, then shuffle it. There is a std::shuffle function that works on most of the standard containers. You can look into std::array which would behave similar to your basic array here.