Question: matlab please do b and c a) Write a function which generates a random number between 1 and 1000. Call the function rand_1000. This function
matlaba) Write a function which generates a random number between 1 and 1000. Call the function rand_1000. This function doesn't take an input. b) Write a script which calls your rand_1000 function 10 times and sums the results. c) Write a script which initiatizes a variable x to some random number between 1 and 10000. Then repeatdely or iteratively update x by alternately adding a random number between 1 and 1000 followed by subtracting a random number between 1 and 2000. Stop when x
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
