textBox2.Clear();
Random r = new Random();
int deger = Convert.ToInt32(textBox1.Text);
int kelime_sayisi = listBox1.Items.Count;
for (int i = 0; i < deger; i++)
{
int random_index = r.Next(0, kelime_sayisi);
textBox2.Text += listBox1.Items[random_index].ToString()+" ";
}