Question: QUESTION 2 : Write a function that is called pickone, which will receive one input argument x , which is a vector, and will return

QUESTION 2:
Write a function that is called pickone, which will receive one input argument x, which is a vector, and
will return one random element from the vector. For example,
pickone (4:7)
ans =
5
In vour script, test out your function with input x which is an array of 10 integers in the range from 1 to
 QUESTION 2: Write a function that is called pickone, which will

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!