Question: Using Python!! 4. (3 points) Create a function called ????????_?? that: a. Takes as inputs a number N and a number ??. b. Generates ??
Using Python!!
4. (3 points) Create a function called ????????_?? that: a. Takes as inputs a number N and a number ??. b. Generates ?? random numbers in the interval [0,1). c. Of the ?? generated random numbers, counts the random numbers that are less than ??. Name the variable that stores the count as ??????????. d. Returns 100 ??????????/?? (i.e., the percentage of the ?? random numbers that were less than ??).
5. Test your ????????_?? function with (?? = 10,000, ?? = 0.30) and (?? = 10,000, ?? = 0.60). What can you conclude from the results of these test runs? (1 point)
6. Create a script that determines the execution time of your ????????_?? function for a test with (?? = 10,000, ?? = 0.60). [Hint: You will need to search how to measure a programs execution time in Python.] (1 points)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
