Write a C program which simulates the rolling of three dice, several thousand times, and maintains and prints a record of the number of 2s, 3s, . . ., 12s seen. See man random under Linux.
srandom( time(NULL) ); initializes a random seed. A call to random() gives you a random number.
However, you have to get a number between 1 and 6. That can be done by the % operator.