#include <bits/stdc++.h>
using namespace std;
const int N = 50;
int n = 26, a[N];
mt19937 rnd(3579);
int main()
{
for (int i=0; i<n; i++) a[i] = i;
for (int i=1; i<=9332; i++) shuffle(a, a+n, rnd);
for (int i=0; i<n; i++) cout << a[i] << " "; puts("");
return 0;
}
在我的 Windows 和 Linux 上运行结果不一样(换掉 std::shuffle 就对了)