Last semester for a VB class I took, we had to program a Visual Basic Tic-Tac-Toe without any help from the teacher. I established myself with getting the Tic-Tac-Toe to work, but we needed to have a random start, either computer or human first. So heres what I got.
That worked just fine for the started, but now I needed to randomize where the computer started. And I found out Rnd only generates a random number 0-1. How would I generate 0-8?Dim iStart as Integer
iStart = Rnd


Reply With Quote


Bookmarks