Recently started basic programming in uni and I am struggling with c#. One of my lab questions was write a dice program, i will write the exact question below. Because of anxiety I cannot ask the lecturer for help in class so thats why I am here. I am unsure of how to make or even start this program hopefully I can study the correct code to help me in future.
Here is the question
Write a program that rolls a dice(ie generates a random number between 1 and 6) and counts how many times the dice is rolled until it gets a 6. The program will ask the user if they want to continue by entering a positive number of terminate by entering a "0". The program displays the average number of rolls needed to get a six and the number of sixes that average was based on. The code below will help you generate a random number
We were given this piece of code for starter
Random rndm = new Random();
int number = rndm = rndm.Next(6)+1;