Вот кусок кода:
- Код: Выделить всё
Option Explicit
Dim Random As Long
Dim Number1 As Long
Dim Number2 As Long
Private Sub Command1_Click()
If Text1 = Label3 Then Number1 = Number1 + 1
Number2 = Number2 + 1
Random = Int((10000 * Rnd) + 1)
Text1.Text = ""
If Number2 = 1 Then Command1.Caption = "DO!"
If Number2 = 1 Then
If Random <= 2500 Then Label3.Caption = "1"
If Random <= 5000 Then Label3.Caption = "2"
If Random <= 7500 Then Label3.Caption = "3"
If Random <= 10000 Then Label3.Caption = "4"
Жду летящих камней!