I need to make a kind of "Mini-Pife", but I can not create the method to shuffle the cards, can anyone help me?
public class Baralho
{
public Carta[] Cartas { get; private set; }
public Baralho()
{
this.Cartas = new Carta[52];
int c = 0;
for (int nIdx = 0; nIdx < 4; ++nIdx)
{
Naipe naipe = (Naipe)(nIdx + 1);
for (int vIdx = 0; vIdx < 13; ++vIdx)
{
Valor valor = (Valor)(vIdx + 1);
this.Cartas[c++] = new Carta()
{
Naipe = naipe,
Valor = valor
};
}
}
}