Sub btnRndNr_Click
rndNr = Rnd(1, 7) ' Create random nr. 1 to 6
Do While rnums.Contains("," & rndNr & ",")
rndNr = Rnd(1, 7)
Loop
rnums=rnums & rndNr & ","
Log (rndNr & " > " & rnums)
labRndNr.Text = "Rnd Nr. = " & rndNr
'counter
labCount.Text = "Count = " & count
count = count +1
If count = 7 Then 'If counter is 7, reset to 1
count = 1
rnums=","
End If
End Sub