代码
Random random
=
new
Random();
string strRandom = (random.Next( 1 , int .MaxValue).ToString() + " 000 " ).Substring( 0 , 4 );
string orderId = " name " + DateTime.Now.ToString( " yyyyMMddHHmmssffff " ) + strRandom;、
string strRandom = (random.Next( 1 , int .MaxValue).ToString() + " 000 " ).Substring( 0 , 4 );
string orderId = " name " + DateTime.Now.ToString( " yyyyMMddHHmmssffff " ) + strRandom;、