【tips】c/c++随机数的调用

目录html 【tips】c/c++随机数的调用c++ 须要使用rand()和srand()函数函数 rand()为随机数函数, 产生[0,int型最大值)之间的整数数学习 srand(int seed)为初始化随机数种子函数 具体例子以下:code #include<stdlib.h>  //标准(std)操做库(lib), 内含srand(),rand()函数 #include<time.h>
相关文章
相关标签/搜索