Hi,
I have been practicing with some examples i found. I've got it working, i dont know of this is the best way to do it.
This is the code i have so far:
Imports System.IO
Module Module1
Sub Main()
Dim out1 As New StreamWriter("D:\file.txt")
Dim i As Integer
Dim rnd As New Random
Dim List As New List(Of Integer)
Dim index As Integer
Dim Item As Object
Dim MaxSeries As Integer = 20
Dim Serieindex As Integer
For Serieindex = 1 To MaxSeries
For i = 1 To 500
List.Add(i)
Next
While List.Count > 0
index = rnd.Next(0, List.Count)
Item = List(index)
List.RemoveAt(index)
out1.WriteLine(Item.ToString)
End While
out1.WriteLine("Serie: " + Serieindex.ToString)
Next
out1.Close()
End Sub
End Module
This gave the correct output.
But to answer you questions:
1. I did not understand everything Herman posted, the code in the Function is hard for me to understand
2. I heared a little about functions
3. Yes, i've read the links
4. No, im learning it in my free time, an some hours on my work (as today). I have a book, and use the internet to learn it. Do you know some good websites for learning VB.net
So far i did some tutorials, en created some thing myself, (things with textboxes, etc) those things, dont give me any problems so far. But those things i'm not going them often. For work i'll need things like: read out a textfile and create new files. But i cant find much lessons about it.