帮忙分析一下这个程序:)
#include <stdio.h>int ran(void)
{
static int see=1234,n;
printf("(see=%4d)",see);
see=(see+25543)%7415;
n=(see%1000)/10;
return (n);
}
int rand(void)
{
int see=1234,n;
printf("(see=%5d)",see);
see=(see+25543)%7415;
n=(see%1000)/10;
return (n);
}
void main(void)
{
int i,j;
for (i=0;i<3;i++)
{
for(j=0;j<2;j++)
printf("%3d",ran());
printf("\n");
}
for (i=0;i<3;i++)
{
for(j=0;j<2;j++)
printf("%3d",rand());
printf("\n");
}
}