优点:产生速度快, 周期大

用法:

#include<bits/stdc++.h>
using namespace std;

int main() {
    mt19937 mt_rand(time(0));
    cout << mt_rand() << endl;
    shuffle(a+1, a+1+n, mt_rand);
    return 0;
}

 

相关文章:

  • 2021-05-12
  • 2021-08-01
  • 2021-12-16
  • 2021-12-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-07
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-08
  • 2022-12-23
  • 2022-02-09
  • 2021-12-13
  • 2022-12-23
相关资源
相似解决方案