Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
5sdgts
#include <iostream> #include <random> int main() { std::uniform_int_distribution<int> d(0, 10); std::random_device rd1; // uses RDRND or /dev/urandom for(int n = 0; n < 10; ++n) std::cout << d(rd1) << ' '; std::cout << '\n'; std::random_device rd2("/dev/random"); // much slower on Linux for(int n = 0; n < 10; ++n) std::cout << d(rd2) << ' '; std::cout << '\n'; }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
лаб1
const_pointer_cast
Type deduction in VC++
additional layer of indirection
MSVC C++ runtime bug in dynamic_cast
VS'15 parameter pack sfinae
upper_bound With binary_function Visual Studio 2008 Bug?
rang_warnings
MSVC14 <experimental/generator> header
Workaround for https://github.com/Project-OSRM/osrm-backend/pull/4385
stackse - search stackoverflow differently
Please log in to post a comment.