Dice coding.
I need to develop a game, in that i need a dice coding, Can any one help me in this?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Selva GanapathyPosted Sep 29, 2014, 8:33 AM
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 NitinPosted Sep 26, 2014, 4:05 AM
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