Question: Using python!!! Use any random list function. 2. Copy your rand_list() function from a previous lab, rename it rand_matrix(), and insert a new parameter as

Using python!!!

Use any random list function. Using python!!! Use any random list function. 2. Copy your rand_list() function

2. Copy your rand_list() function from a previous lab, rename it rand_matrix(), and insert a new parameter as the second parameter so the four parameters to the function are now the number of rows in the matrix, the number of columns in the matrix, the minimum allowable matrix value, and the maximum allowable matrix value. The function should then create a nested list structure containing appropriate values to represent the matrix. For example, rand_matrix( 3, 4, 10, 99 ) might create and return this nested list structure: [[ 37, 83, 42, 51 ], [ 99, 13, 29, 67 ], [ 32, 16, 86, 64 ] ] In the exercise2 () function, call your rand_matrix() function twice and print the results. The first call should create a 3x4 matrix with random two-digit integers and the second call should create an 8x6 matrix with random three-digit integers

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!