public
staticint[] a = newint[13];
staticvoid Main(string[] args)
{
Random r = newRandom();
for (int i = 0; i < 13; i++)
{
int Temp = r.Next(0, 14);
while (Check(Temp))
{
Temp = r.Next(0, 14);
}

a[i] = Temp;
}
foreach (int x in a)
{
Console.WriteLine(x);
}
Console.ReadLine();

}
publicstaticbool Check(int Number)
{
bool ch = false;
foreach (int x in a)
{
if (x == Number)
{
ch =
true;
}
}
return ch;
}
}