C++ 实现随机小数的几种方法

1.rand()实现方法 #include <iostream> #include <vector> using namespace std; int main() { vector<double> tmpData; srand((unsigned)time(NULL));//这里以当前时间为种子 while (i<100) { double B = (double)(rand() %
相关文章
相关标签/搜索