C#. 8 Kolonlu Sayısal Loto Sayı Üretme Programı


C#. 8 Kolonlu Sayısal Loto Sayı Üretme Programı
{
int kolonSayisi;
Console.Write("Kolon sayısını giriniz >>>");
kolonSayisi = int.Parse(Console.ReadLine());
Random rnd = new Random();
int[] rastgelesayi = new int[6];
  for (int j = 0; j < kolonSayisi; j++)
  {
    for (int i = 0; i < 6; i++)
    {
    rastgelesayi[i] = rnd.Next(1, 50);
    }
  Array.Sort(rastgelesayi);
    for (int i = 0; i < 6; i++)
    {
    Console.Write(rastgelesayi[i] + " ");
    }
   Console.WriteLine("\n");
}
 Console.ReadLine();
 }