#include <stdlib.h>
#include <stdio.h>
#include <time.h>
int main( void )
{
// 使随机数和时间绑定~所以每次的数字会不一样~
srand( (unsigned)time( NULL ) );
for(int i=0;i<50;++i)
printf("%d/n", rand());
return 0;
}
#include <stdio.h>
#include <time.h>
int main( void )
{
// 使随机数和时间绑定~所以每次的数字会不一样~
srand( (unsigned)time( NULL ) );
for(int i=0;i<50;++i)
printf("%d/n", rand());
return 0;
}