我不明白如何将数字添加到随机字符串中,而不是有时显示类似 3 的字符串,我希望它始终显示 5 字符串,但我不知道该怎么做。
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim rndnumber As Random
Dim number As Integer
rndnumber = New Random
number = rndnumber.Next(1, 80000)
TextBox1.Text = number.ToString
End Sub