here is a sample program. Im really lost and dont know where to go from here. We use gcc to compile. I need to roll the dice 10000 times and fine standard devi and average. I know I nned to use randmax and 6-1 I think but donr know where to put them? Please help.
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <math.h>
int main()
{
int i,a[1000], float sum=0, avg, std;
srand(time(NULL));
for (i=0;i<1000;i++) a[i]=....;
for (i=0;i<1000;i++) sum+= ....;
...................;
return 0;
}