skaryChinezeGuie
Well-known member
- Joined
- Apr 23, 2006
- Messages
- 94
- Programming Experience
- Beginner
I need to generate a list of 1000 random numbers. and parse them out to a text document on the desktop. and the format must be XXXXXXXX, as in 12345678 or 00000001. Here's what I have so far.
Form1.vb
Public variables page
Form1.vb
VB.NET:
Private Sub BtnGenerate_Click
If Rad1.Checked = True Then
PictureBox1.Image = ImageList1.Images(0)
PictureBox1.Visible = True
Selection = one
End If
If Rad1000.Checked = True Then
PictureBox1.Image = ImageList1.Images(1)
PictureBox1.Visible = True
Selection = onethousand
End If
If Rad10000.Checked = True Then
PictureBox1.Image = ImageList1.Images(2)
PictureBox1.Visible = True
Selection = tenthousand
End If
End Sub
Public variables page
VB.NET:
Public Module PublicVariables
Public IDlist As ArrayList
Public Selection As Integer
Public one As Integer = 1
Public onethousand As Integer = 1000
Public tenthousand As Integer = 10000
Public Sub IDs()
Dim IDnumber As New Random
Selection = IDnumber.Next(1, 99999999)
End Sub
End Module