Public Shared minLen As Double = 1000.0
Public Shared maxLen As Double = 5000.0
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim random As New Random(DateTime.Now.Millisecond)
Dim randInt As Integer = random.[Next](0, 100)
Dim Len = minLen + (maxLen - minLen) * randInt / 100
MsgBox(Len)
End Sub
End Class
|
暂时没有评论
发表评论 - 不要忘了输入验证码哦! |