测试Windows live Writer

private String GetRandomint(int codeCount)
        {
            Random random = new Random();
            string min = "";
            string max = "";
            for (int i = 0; i < codeCount; i++)
            {
                min +="1";
                max+="9";
            }
                return (random.Next(Convert.ToInt32(min),Convert.ToInt32(max)).ToString());
        }
原文地址:https://www.cnblogs.com/hornet/p/4176578.html