Write a program to generate 10 random numbers between 1 and 10, and print out the 10 numbers and the total of the numbers.