The way the program is writen, if you type

$ generate
it sends its output (the 100x100 array) to the terminal, which is not very useful.

The ">" in
$ generate > test1.data 
redirects the output of the program "generate" to the ascii file "test1.dat". You can have a look at the file with any text editor.