码迷,mamicode.com
首页 > 其他好文 > 详细

mt19937

时间:2020-03-21 17:50:35      阅读:56      评论:0      收藏:0      [点我收藏+]

标签:c++11   mat   time   text   rand   str   and   main   dom   

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

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

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

mt19937

标签:c++11   mat   time   text   rand   str   and   main   dom   

原文地址:https://www.cnblogs.com/Ryedii-blog/p/12540541.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!