I want to know how do random function while the values of the random are from an array that exists in the program (pointer int). My code looks like:
v=rand() %((array[0] - array[size_c]) + 1);
but the value of v
does not belong to array.
Thank you.