Write a function that will generate an array of random numbe
Write a function that will generate an array of random numbers. It needs to:
take 3 integers as parameters
The first is the minimum value
the second is the maximum value
the third is the size of the new array
create a dynamically allocated array of the correct size generate a random number (between min and max) for each element in the array
return a pointer to the array
Create a main() function that tests the above function and displays the values in the random array.
Do not use array notation inside the function. Use pointer notation only. Do not use any type of operation such as cstdlib.h , ctime.h or cstdlib
This is C++. Please make sure the answer is readable and executable. Thanks
Solution
#include