public string getstring()
{
string str="";
char[] character=new char[]{'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};
for(int i=0;i<10000;i++)
{
Random r=new Random();
int j=r.next(0,260);
j=j%26;//增强随机性
str+=character[j].ToString();
}
return str;
}
这个方法应该能够成功.