string[] bolumler = { "matematik", "fizik", "kimya" };Random r = new Random();
var sonuc = from c in new[]{ new {Ad="ali",Yas=21}, new {Ad="murat",Yas=22}, new {Ad="ismail",Yas=25}}
let bolum = bolumler[r.Next(0,bolumler.Length)]select new{ Person = c, Bolum = bolum};
foreach (var s in sonuc) listBox1.Items.Add(s.Person.Ad + " " + s.Bolum);
Remember Me