随机数的头文件形式

#include <stdlib.h>
#include <stdio.h>
#include <time.h>
int  main( void )
{
    int t;
    srand((unsigned)time(NULL));
    t=rand();
        printf("  %6d\n", t);
}

 

posted @ 2016-11-18 12:58  阿水写程序  阅读(1427)  评论(0编辑  收藏  举报