J
jdrott1
can someone check this logic for me? i'm trying to get a random
number between 1 and 38.
group 1-12 is winner everything else is a loser (for now)
everytime i run the logic i receive 297+ wins
Do While counter < 300
randomnumber = CInt(Int((38 - 1 + 1) * Rnd(Rnd()) + 1))
If randomnumber <= 12 Then
First12 = True
ElseIf randomnumber >= 13 <= 24 Then
Second12 = True
ElseIf randomnumber >= 25 <= 36 Then
Third12 = True
Else
zero1 = True
End If
If First12 = True Then
Wins = Wins + 1
lblWins.Text = Wins
Else
Loses = Loses + 1
lblLoses.Text = Loses
End If
counter = counter + 1
lblCounter.Text = counter & " Spins"
Loop
number between 1 and 38.
group 1-12 is winner everything else is a loser (for now)
everytime i run the logic i receive 297+ wins
Do While counter < 300
randomnumber = CInt(Int((38 - 1 + 1) * Rnd(Rnd()) + 1))
If randomnumber <= 12 Then
First12 = True
ElseIf randomnumber >= 13 <= 24 Then
Second12 = True
ElseIf randomnumber >= 25 <= 36 Then
Third12 = True
Else
zero1 = True
End If
If First12 = True Then
Wins = Wins + 1
lblWins.Text = Wins
Else
Loses = Loses + 1
lblLoses.Text = Loses
End If
counter = counter + 1
lblCounter.Text = counter & " Spins"
Loop