random_device rd;
    std::mt19937 gen(rd());
    std::uniform_int_distribution<> dis(1, 6);
    for(int n=0; n<10; ++n)
        std::cout << dis(gen) << ' ';

相关文章:

  • 2021-08-08
  • 2021-12-06
  • 2021-05-20
  • 2021-08-08
  • 2021-12-28
猜你喜欢
  • 2021-09-03
  • 2022-12-23
  • 2021-11-29
  • 2021-09-13
  • 2021-07-01
  • 2022-01-25
  • 2021-12-23
相关资源
相似解决方案