Please write this code in C programming language and comment the program properly.
1. Create a random dice roll simulation that simulates rolling a single dice 10,000 times. Run the simulation and count the frequency of the values. Plot the obtained values as a histogram graph consisting of '*' symbols as shown below. The resulting graph will be close to a uniform distribution as follows:
1 2 34