每次产生16位不同的随机二进制数:
#include
int main()
{int i;
srand(time(NULL));
for(i=0;i<16;i++)
printf("%d",rand()%2);
return 0;
}