public static void Main()
Console.WriteLine("How many times would you like to roll the dice?");
string input = Console.ReadLine();
if (ulong.TryParse(input, out rolls))
Random r2 = new Random();
decimal count2 = 0, count3 = 0, count4 = 0, count5 = 0, count6 = 0, count7 = 0, count8 = 0, count9 = 0, count10 = 0, count11 = 0, count12 = 0;
Console.WriteLine("You rolled the following: .");
for(decimal i = 1; i <= rolls; i++)
{decimal roll = r.Next(2, 13);
Console.Write(roll + " ");
decimal per2 = count2/rolls*100M;
Console.WriteLine("You have rolled a 2 " + per2.ToString("##.##") + "% of the time.");
decimal per3 = count3/rolls*100M;
Console.WriteLine("You have rolled a 3 " + per3.ToString("##.##") + "% of the time.");
decimal per4 = count4/rolls*100M;
Console.WriteLine("You have rolled a 4 " + per4.ToString("##.##") + "% of the time.");
decimal per5 = count5/rolls*100M;
Console.WriteLine("You have rolled a 5 " + per5.ToString("##.##") + "% of the time.");
decimal per6 = count6/rolls*100M;
Console.WriteLine("You have rolled a 6 " + per6.ToString("##.##") + "% of the time.");
decimal per7 = count7/rolls*100M;
Console.WriteLine("You have rolled a 7 " + per7.ToString("##.##") + "% of the time.");
decimal per8 = count8/rolls*100M;
Console.WriteLine("You have rolled a 8 " + per8.ToString("##.##") + "% of the time.");
decimal per9 = count9/rolls*100M;
Console.WriteLine("You have rolled a 9 " + per9.ToString("##.##") + "% of the time.");
decimal per10 = count10/rolls*100M;
Console.WriteLine("You have rolled a 10 " + per10.ToString("##.##") + "% of the time.");
decimal per11 = count11/rolls*100M;
Console.WriteLine("You have rolled a 11 " + per11.ToString("##.##") + "% of the time.");
decimal per12= count12/rolls*100M;
Console.WriteLine("You have rolled a 12 " + per12.ToString("##.##") + "% of the time.");
Console.WriteLine("Please enter an appropriate number.");
Console.WriteLine("Would you like to restart the program? y/n");
string choice = Console.ReadLine();
if (choice == "Y" || choice == "y")