你女票是干啥的呀(拿这个去解吧)
public static String GeneratingRandomString(int length, int sleep = 10)
{
if(sleep>0)
{
System.Threading.Thread.Sleep(sleep);
}
String str = String.Empty;
int rep = 0;
long num2 = DateTime.Now.Ticks + rep;
rep++;
Random random = new Random(((int)(((ulong)num2) & 0xffffffffL)) | ((int)(num2 >> rep)));
for (int i = 0; i < length; i++)
{
char ch;
int num = random.Next();
if ((num % 2) == 0)
{
ch = (char)(0x30 + ((ushort)(num % 10)));
}
else
{
ch = (char)(0x41 + ((ushort)(num % 0x1a)));
}
str = str + ch.ToString();
}
return str;
}
length 是生成几位
sleep 是生成时间间隔
10个数字+26个字母,6次方
36^6=2176782336
数据量较大,罗列出来的现实意义最什么?