mt19937

Posted ryedii-blog

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mt19937相关的知识,希望对你有一定的参考价值。

  • Lang:C++11
  • ((- ext{MAX_INT}, ext{MAX_INT}))
#include <ctime>
#include <iostream>
#include <random>

std::mt19937 rnd(time(0));

int main() {
    int x = rnd();
}

以上是关于mt19937的主要内容,如果未能解决你的问题,请参考以下文章