here is my code for program where i have to roll a pair of dice 36000 times randomly here is the code and when i compile it it will give me random rolls for even faces of the dice only please tell me what is wrong.

include <stdio.h>

#include <stdlib.h>

#include <time.h>

int frequency[13];

int main()

{

int x,sum,dice_array[1,36000],count_array[13];

srand(time(NULL));

sum=0;

for (x=2; x<=13; x++)

{

count_array[x]=0;

}

for (x=0; x<=36000; x++)

{

dice_array[0,x] = 1 + rand() % 6;

dice_array[1,x] = 1 + rand() % 6;

}

for (x=0; x<=36000; x++)

{

sum=(dice_array[0,x]+dice_array[1,x]);

count_array[sum]++;

sum=0;

}

printf("\n Number Frequency\n");

for (x=2; x<=12; x++)

{

printf("%d%10d\n",x,count_array[sum]);

}

return 0;

}