Question: Write a function that will take a variable number of input arguments and return a random floatingpoint number with the following ranges: no input arguments
Write a function that will take a variable number of input arguments and return a random floatingpoint number with the following ranges: no input arguments means range is 0 to 1; one input argument is n and range is 0 to n; and two arguments are m and n and the range is m to n.
Example:
>> outval = fnname() outval = 0.2345
>> outval = fnname(4) outval = 3.2345
>> outval = fnname(5,6) outval = 5.2345
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
