//固定长度8位 int j = r.Next(1, 12345678); string s = string.Format("{0:00000000}", j);
string s = DateTime.Now.ToString("yyyyMMddHHmmssfffffff");//输出:201212211513516530347