Here is the program with all of the random arrays generated and outputted.