//生成六位随机数字

  protected void BtnSave_Click(object sender, EventArgs e)
        {
            Random rd = new Random();
            int a = rd.Next(5, 99999);
            TxtNum.Text = string.Format("{0:00000}", a);// 001234
           
        }

你可能感兴趣的:(随机数)