{
Random random = new Random();
return random.Next (2, 15);
}
public static int DisplayCard()
{
int card = " ";
if (card = 14)
card = "Ace";
if (card = 13)
card = "King";
if (card = 12)
card = "Queen";
if (card = 11)
card = "Jack";
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Vilas GiteRank #951 · 2.1K reputationPosted May 7, 2011, 11:55 PM EDT
Please open below link which is recommended articles by Mindcrackers. :)
http://www.c-sharpcorner.com/UploadFile/puranindia/506/
hopes it will solve your prob.
FroglegRank #1,020 · 1.9K reputationPosted May 8, 2011, 12:02 AM EDT
public static int DisplayCard()
{
int card = " ";
string _card;
if (card = 14)
_card = "Ace";
if (card = 13)
_card = "King";
if (card = 12)
_card = "Queen";
if (card = 11)
_card = "Jack";
Have a search on the site for a better way of setting up card game