This week's book giveaway is in the Design forum. We're giving away four copies of Building Microservices and have Sam Newman on-line! See this thread for details.

hey guys, great site,
java n00b here, question if you will, please.

given the following header: pubic void sumAndAverageRandom()

I need to write a method called sumAndAverageRandom that generates and displays 10 random numbers in the range 1-100. The method should also calculate the sum and average of the 10 random.
I can generate the 10 numbers, but Im lost on how to tie in sum and average in their also !
any help appreciated

Sorry i seriously did not understand the question. Happy if you have found out the answer. Else can you elaborate a little more.
If you really need the sum then you can add in the loop all the numbers you generate and div by 10 after the loop to get the average.
Paul - I dint understand your comment either