Guest User

Untitled

a guest
Apr 23rd, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.42 KB | None | 0 0
  1.         Dim rand As New Random
  2.         Randomize()
  3.         Dim found As Boolean
  4.         Dim position2 As Integer
  5.         For i = 1 To 9
  6.             found = False
  7.             Do
  8.                 position2 = 1 + rand.Next(9)
  9.                 If lbl(position2).Text = 0 Then
  10.                     lbl(position2).Text = i
  11.                     found = True
  12.                 End If
  13.             Loop Until found
  14.         Next
Add Comment
Please, Sign In to add comment