Actually, this is what I'd do (Testing it is up to the user...
)
class Assignment1
{
private Random RandomNumber = new Random();
private int[] CardList = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10 };
public int GetRandomCard()
{
return CardList[RandomNumber.Next(0, 12)];
}
}