是相对随机还是
#include <iostream>
#include <cstdlib>
#include <ctime>
using namespace std;
int main()
{
srand(time(0));
cout << "RAND_MAX: " << RAND_MAX << endl;
int x = rand();
cout << "x: " << x << endl;
return 0;
}
是相对随机还是
#include <iostream>
#include <cstdlib>
#include <ctime>
using namespace std;
int main()
{
srand(time(0));
cout << "RAND_MAX: " << RAND_MAX << endl;
int x = rand();
cout << "x: " << x << endl;
return 0;
}
1-20
@Benu #1 没见过20的
感觉比真随机偏少
@Adger #2 估计这辈子都见不到
@velezkirsten #3 那就是按一个周期获取固定量吧
@alert-sc #4 我也感觉到了,应该就是一周固定保守量 然后再平均随机那样
@Benu #5 最高好像就见过18的
十几个
说的是每天五个和随机差不多