#include "stdlib.h"

rand()%4+8  //表示产生8到12之间的随机数

注意:不用srand(seed)就可以产生随机数,而且每次运行到rand()都产生不一样的随机数

相关文章:

  • 2021-12-23
  • 2021-12-16
  • 2021-09-18
  • 2021-10-01
  • 2021-06-22
  • 2021-11-23
  • 2021-04-14
猜你喜欢
  • 2021-06-12
  • 2021-06-30
  • 2022-12-23
  • 2021-11-28
  • 2021-11-18
相关资源
相似解决方案