About this code: This program generates N random numbers which are between min-max values and the total average is avg Note: all numbers with 2 Decimal precision
Inputs:
avg: What is the average for the numbers
min: What is the minimum number
max: What is the maximum number
N: How many numbers do you want to generate
Outputs:
average: The computed average for the generated number
- Because the decimal precision sets to 2, there is a small variation from input avg
arr: This array contained the values of the random number.
Author: Shahim Vedaei
Last modification: Dec 19 2019