Hello people of StackOverflow. I am doing an application that randomize a set of 5 cards with 2 different arrays. 1 array is for the number of the card(Ace,king,queen,etc...) and the other array is for the type of card(spade,etc..)
What I am trying to do is to insert a random stringin the set of 5 cards using a for loop and then assigning the randomized string to the array I will be using to check if I have a pair.
Here is my code. The error I encounter is that the tbValuer and tbEnseigne are not assigned.
{
  string[] tbValeur   ;
  string[] tbEnseigne ;
  string[] tbNumero   =
    { "As"    , "Deux" , "Trois" , "Quatre" , "Cinq" ,
      "Six"   , "Sept" , "Huit"  , "Neuf"   , "Dix"  ,
      "Valet" , "Dame" , "Roi"
    };
  string[] tbCouleur  =
    { "Carreau" ,
      "Coeur"   ,
      "Trèfle"  ,
      "Pique"
    };
  Random rnd = new Random();
  for (int i = 0; i <=4; i++)
  {                
    tbValeur[i]   = tbNumero[   rnd.Next(0,12) ] ;
    tbEnseigne[i] = tbEnseigne[ rnd.Next(0,3)  ] ;
 
     
    