using System;
public class Program
{
public static void Main()
int c1, c2, soucet, ph;
soucet = 0; ph = 0;
Random r = new Random();
do
c1 = r.Next(1, 7);
c2 = r.Next(1, 7);
soucet = c1 + c2;
ph = ph + 2;
}
while (soucet != 12);
Console.WriteLine("Teď padly dvě stejné čísla.");
Console.WriteLine("Potřebný počet hodů:" + ph);
Console.ReadLine();