10.28 随机数

//srand((unsigned)time(NULL));
//rand()%100
#include
#include
#include
int main()
{
    int i;
    printf("...");
    srand((unsigned)time(NULL));
    for(i=0;i<10;i++)
    {
//        srand((unsigned)time(NULL));
        printf("%d   ",rand()%100);
    }
    printf("\n");
}

你可能感兴趣的:(10.28 随机数)