Hi guys i am trying to randomize 6 numbers into 6 textboxes up to the value of 60 without repeating a number but i dont know how an error handler would work for duplicate numbers any idea's?
this is what i have so far:
[CODE=vb]Text1.Text = Int(Rnd * 60) + 1
Text2.Text = Int(Rnd * 60) + 1
Text3.Text = Int(Rnd * 60) + 1
Text4.Text = Int(Rnd * 60) + 1
Text5.Text = Int(Rnd * 60) + 1
Text6.Text = Int(Rnd * 60) + 1[/CODE]
Thanks for any help in advanced
Gobble.
<<< btw VB 6 >>>
this is what i have so far:
[CODE=vb]Text1.Text = Int(Rnd * 60) + 1
Text2.Text = Int(Rnd * 60) + 1
Text3.Text = Int(Rnd * 60) + 1
Text4.Text = Int(Rnd * 60) + 1
Text5.Text = Int(Rnd * 60) + 1
Text6.Text = Int(Rnd * 60) + 1[/CODE]
Thanks for any help in advanced
Gobble.
<<< btw VB 6 >>>
Comment