using System;
public class Program
{
public static void Main()
Random numberGen = new Random();
int numberOfAttempts = 0;
int attempt = 0;
while (attempt != 6)
attempt = numberGen.Next(1,7);
Console.WriteLine("Number Rolled: " + attempt);
numberOfAttempts++;
}
Console.WriteLine("Took " + numberOfAttempts + " attempts to roll a six.");