it's not working probably ,, what should i do?
this is my shuffling routine, would you plz tell me what is the problem with my code...
public void shuffle()
{
List<card> shufCards=new List<card>(52);
Random rand=new Random();
for (int i = 0; i < cards.Count; i++)
{
int c = rand.Next(cards.Count);
shufCards.Add(cards[c]);
cards.RemoveAt(c);
}
cards = shufCards;
}
Edited by Jaan, 15 November 2009 - 12:14 PM.
Please use code tags when you are posting your codes !


Sign In
Create Account

Back to top









