Random ro = new Random(); //声明对象
int iResult;//随机数
iResult = ro.Next(1, max);//取一个从1到max的整数
生成N位
public static string RandCode(int N)
{
char[] arrChar = new char[] {
'0',
Random ro = new Random(); //声明对象
int iResult;//随机数
iResult = ro.Next(1, max);//取一个从1到max的整数
生成N位
public static string RandCode(int N)
{
char[] arrChar = new char[] {
'0',