(C++) Write a function that takes as an input parameter an
integer that will represent the length of the array and a second
integer that represents the range of numbers the random number
should generate (in other words, if the number is 50, the random
number generator should generate numbers between 0 and 49 including
49. The function then sorts the list by traversing the list,
locating the smallest number, and printing out that smallest
number, then replacing that number...