Welcome to collectivesolver - Programming & Software Q&A with code examples. A website with trusted programming answers. All programs are tested and work.

Contact: aviboots(AT)netvision.net.il

Buy a domain name - Register cheap domain names from $0.99 - Namecheap

Scalable Hosting That Grows With You

Secure & Reliable Web Hosting, Free Domain, Free SSL, 1-Click WordPress Install, Expert 24/7 Support

Semrush - keyword research tool

Boost your online presence with premium web hosting and servers

Disclosure: My content contains affiliate links.

39,907 questions

51,839 answers

573 users

What is the max mt19937 value in C++

1 Answer

0 votes
#include <iostream>
#include <random>

int main()
{
    std::mt19937 mt(time(nullptr));
    
    std::cout << "max: " << mt.max() << '\n';
}





/*
run:

max: 4294967295

*/

 



answered Jan 7, 2023 by avibootz

Related questions

1 answer 115 views
115 views asked Jan 6, 2023 by avibootz
1 answer 180 views
180 views asked Feb 15, 2017 by avibootz
2 answers 121 views
121 views asked Jan 7, 2023 by avibootz
1 answer 138 views
138 views asked Mar 25, 2021 by avibootz
1 answer 130 views
130 views asked Dec 10, 2020 by avibootz
1 answer 140 views
140 views asked Jul 4, 2020 by avibootz
...