How to find out if there are equal numbers in the listbox? How should this be written in a loop?
do { a = v.Next(min, max + 1); listBox1.Items.Add(a); i++; a = b; a++; } while (i < n); if (a==aa) { s = "Одинаковые"; } else { s = "Разные"; } label5.Text = s;