#include <iostream>
#include <vector>
#include <stdlib.h>
#include <time.h>
using namespace std;
int main() {
std::vector
c++生成给定区间的随机数
最新推荐文章于 2026-06-15 13:31:43 发布
该程序演示了如何使用C++在3到100的范围内生成100个不重复的随机数。通过设置srand种子确保每次运行都能得到不同的随机数序列。

1751

被折叠的 条评论
为什么被折叠?



