Question: Given integer variables seedVal and largestValue, generate four random numbers that are less than largestValue and greater than or equal to 0. Each number generated
Given integer variables seedVal and largestValue, generate four random numbers that are less than largestValue and greater than or equal to 0. Each number generated is output. Lastly, the average of the four numbers is output. Ex. If largestvalue is 10 , then a possible output is: 1 5 4 8 Average: 4.5 Note: The input seeds are large integers that approximately equal the time in seconds since January 1, 1970
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
