Private Sub Command1_Click()
Dim x, x1, x2, y, y2, y3 As Integer
x = Int(300 * Rnd + 1)
x1 = Int(300 * Rnd + 1)
x2 = Int(300 * Rnd + 1)
y = Int(140001 * Rnd + 10000)
Y1 = Int(140001 * Rnd + 10000)
y2 = Int(140001 * Rnd + 10000)
If x = x1 Then
x1 = Int(300 * Rnd + 1)
End If
If x1 = x2 Then
x2 = Int(300 * Rnd + 1)
End If
If x = x2 Then
x2 = Int(300 * Rnd + 1)
End If
Text1 = x
Text2 = x1
Text3 = x2
Text4 = y
Text5 = Y1
Text6 = y2
End Sub
Private Sub Command2_Click()
End
End Sub
思路是这样的,同时随机抽取出3个楼数名额对应奖励的金币,想要3个楼数名额不相同,我是全小白,上面全是数学学点点写出来的,但是执行还是不对,请大虾帮忙修改讲解一下