VB6.0:输入N,输出N位随机正整数.(写出代码)

2024-12-04 08:18:59
推荐回答(1个)
回答1:

Private Sub Form_Load()
Dim n As Integer, b As Integer
n = Int(InputBox("请输入一个数", "输入"))
Show
For k = 1 To n
Print Int(Rnd * 1000)
Next k
End Sub