这个程序哪里错了。如何变?
											#include "stdlib.h"
#include "stdio.h"
#define M 50
#define N 10
getdata (int *s)
{ int i;
  for(i=0; i<M; i++) s=random(10);
}
stat(int *a,int *c)
{ int i;
  for(i=0;i<N; i++) c=0;
  for(i=0;i<M; i++) c[a]++;
}
outdata (int *c)
{int i;
 for (i=0;i<N; i++) printf("%d : %d\n",i,c);
}
main()
{ int a[M],c[N];
  getdata (a);
  stat(a,c);
  printf("Output the result: \n");  
  outdata(c);
}
出现了“rror C2065: 'random' : undeclared identifier“

 
											





 
			 
				
			
		 
	    
