int[] i = new int[] { 1, 2, 3, 4, 5, 6 }; //定义你一开始的数组 Random ab = new Random();//定义一个随机数对象 int u=ab.Next(0,i.Length);//生成一个0到数组个数的随机数 ArrayList ii = new ArrayList(i);//把数组复制到ArrayList ii中,便于删除。 ii.Remove(i[u]);//删除随机位置u的那个元素。 i = new int[ii.Count];//重新定义i数组的个数 ii.CopyTo(i);//把ii复制到i中,从而生成一个名字还是i的数组,但元素被随机删除了一个 以上是C#2010编程,需要using System.Collections;如有追问,我只能用百度消息回答.