测试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());
}

浙公网安备 33010602011771号