Implement insertion sort and selection sort using C programming language:
1. Generate an array of random integers to be sorted using either insertion sort or selection sort.
2. Allow the user to specify the number of integers in the array to be sorted in the main function.
3. Allow the user to specify the range of random integers to be generated.
4. Output the array of random integers before and after the sorting operation.