#include "stdafx.h"

#include <stdlib.h>
#include <time.h>
int main() {
    int a;
    srand((unsigned)time(NULL)); //设置随机种子后 随机数会形成固定的序列
    a = rand();
    printf("%d\n", a);

    getchar();
    return 0;
}

 

相关文章:

  • 2021-12-09
  • 2022-12-23
  • 2021-07-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-09
猜你喜欢
  • 2021-06-01
  • 2021-07-22
  • 2021-11-04
  • 2021-08-30
  • 2022-12-23
  • 2021-11-18
相关资源
相似解决方案