2个回答
展开全部
Private Sub Command1_Click()
Dim Plate As Integer
Dim a(3) As Integer
Randomize
Plate = Val(Text1.Text) - 1
For i = 1 To 3
a(i) = Int(Rnd() * Plate + 1)
Next
Label1.Caption = a(1)
Label2.Caption = a(2)
Label3.Caption = a(3)
End Sub
Dim Plate As Integer
Dim a(3) As Integer
Randomize
Plate = Val(Text1.Text) - 1
For i = 1 To 3
a(i) = Int(Rnd() * Plate + 1)
Next
Label1.Caption = a(1)
Label2.Caption = a(2)
Label3.Caption = a(3)
End Sub
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |