Question: Phyton programing Import a module that you can randomize some numbers in a range. Import another module so that you can round up a float

Phyton programing
Import a module that you can randomize some numbers in a range. Import another module so that you can round up a float number.
Create myRandom(x) function such that it will generate x random numbers. The randomized number r,
0<= r< 10
should be equal to 0 or larger than 0
should be smaller than 10
The function should print the random values generated and print their rounded up average. Consider that randomized number may be different in every call because of that with the same x value, you may get different values and different averages than the examples below.
Example program run for myRandom(3)
1. random number: 2
2. random number: 0
3. random number: 1
Average of these random numbers is 1
Example program run for myRandom(5)
1. random number: 4
2. random number: 4
3. random number: 3
4. random number: 7
5. random number: 2
Average of these random numbers is 4
Example program run for myRandom(5)
1. random number: 3
2. random number: 3

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!