- Aug 17, 2005
- 790
- 0
- 0
Hi, so I've been working on this program for awhile and finally hit a road block. So this program should beable to take input from the user (the user decides on how many digits there will be that will be random)then the program should generate the random numbers and print them. And lastly it should swap the order of it. What I have so far is
Public Class Form1
Structure Individual
Dim gene() As Integer
End Structure
Dim original As Individual
Dim reverse As Individual
Private Sub DigitTextBox_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DigitTextBox.TextChanged
Dim digit As Integer
digit = Integer.Parse(originalTextbox.ToString)
initialization(digit)
End Sub
Private Sub initialization(ByVal inputInteger)
Dim generateRandomInteger As Integer
Dim generateRandom As Random = New Random(DateTime.Now.Millisecond)
generateRandomInteger = generateRandom.Next(10)
End Sub
Private Sub initializationButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles initializationButton.Click
originalNumberInteger = Integer.Parse(DigitTextBox.Text) - 1
End Sub
End Class
Any advice would be great. Thanks.
Public Class Form1
Structure Individual
Dim gene() As Integer
End Structure
Dim original As Individual
Dim reverse As Individual
Private Sub DigitTextBox_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DigitTextBox.TextChanged
Dim digit As Integer
digit = Integer.Parse(originalTextbox.ToString)
initialization(digit)
End Sub
Private Sub initialization(ByVal inputInteger)
Dim generateRandomInteger As Integer
Dim generateRandom As Random = New Random(DateTime.Now.Millisecond)
generateRandomInteger = generateRandom.Next(10)
End Sub
Private Sub initializationButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles initializationButton.Click
originalNumberInteger = Integer.Parse(DigitTextBox.Text) - 1
End Sub
End Class
Any advice would be great. Thanks.