private void button1_Click(object sender, EventArgs e)
{
Random rd=new Random();
for (int i = 0; i < 5; i++)
{
int x = rd.Next(10);
listBox1.Items.Add(x.ToString());
}
产生的允许重复么?