Also thought I'd add that you can use:

My.Computer.FileSystem.WriteAllText("FILENAME", Text, False)

Which will be less code than using streamwriter. Just create a string variable to hold the random numbers and then replace Text with the variables name. False is for whether or not you want to append the text to the file (add) or just replace the text already in the file. False will replace the text already in the file.