001_.Net Random
1.to get one number
//Random rnd = new Random();
//int rndNum = rnd.Next(); //int 取值范围内的随机数
//int rndNum = rnd.Next(10); //得0~9的随机数
//int rndNum = rnd.Next(10, 20); //得10~19的随机数
//int rndNum = rnd.NextDouble(); //得0~1的随机数
//int iSeed=6;
//Random rnd = new Random(iSeed);
//int rndNum = rnd.Next(0,9);
//Response.Write(rndNum.ToString()+"<br>");
2.to get a random string
string strRnd = (System.Guid.NewGuid().ToString().Substring(0, 6)).ToUpper() ;
Response.Write(strRnd + "<br>");
above,