Dice coding.
I need to develop a game, in that i need a dice coding, Can any one help me in this?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
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 attend5days leftRegister
Selva GanapathyRank #560 · 4.3K reputationPosted Sep 29, 2014, 4:33 AM EDT
Hi Jegan Priya,
You can achieve it simply by the following base code
Random r = new Random();
this.label1.Text = r.Next(1, 6).ToString ();
Regards,
Selva Ganapathy K
Ck NitinRank #189 · 12.9K reputationPosted Sep 26, 2014, 12:05 AM EDT
below links may help u
http://www.c-sharpcorner.com/UploadFile/mgold/yahtzee11142005043447AM/yahtzee.aspx
http://www.codeproject.com/Articles/4224/Random-Number-Die-Roller
http://www.daniweb.com/forums/thread11789.html
http://channel9.msdn.com/forums/TechOff/7321-C-dice-Roller/
http://www.dreamincode.net/forums/showtopic43995.htm