请教大哥大姐随机函数的问题!
怎样在C#里面随机生成不重复N(N>1000)组6-8位数,知道的请不吝赐教,谢谢!
public class suijishu
{
private static Random randomNumber;
static suijishu()
{
randomNumber=new Random();
}
public int Next()
{
return randomNumber.Next();
}
}
private void button1_Click(object sender,System.EventArys e)
{
suijishu sjs=new suijishu();
int i=0;
while(i==0)
{
this.label1.Text=sjs.Next().ToString();
i++;
}
}