Challenge 17
📊
Min, Max, Mean & More
Create a program to generate random numbers. The following should also be random:
- Number of random numbers to generate (n)
- Smallest possible number that can be generated (s)
- Largest possible number that can be generated (l)
Based on these 3 factors, your program should then generate random numbers matching this criteria. The following should be output
- All the generated random numbers
- The minimum number generated
- The maximum number generated
- The sum of the generated numbers
- The mean of the generated numbers
- The range of the generated numbers
Examples:
If we say the values of n, s, l are 5, 10, 20 respectively, the a possible group of random numbers that could be generated could be 14, 12, 20, 19, 12
The program would output these generated numbers 14, 12, 20, 19, 12 to the user, along with the min 12, max 20, sum 77, mean 15.4 and range 8
Extension:
Calculate additional statistical values such as the mode, median, standard deviation, percentiles, interquartile range etc