Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
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
123
parantheses matching using stack in C++ - test
seh exception in constructor memory leak
Competitive - Algorithm for max number of superior characters
Regex success
PRIx64 on MSVC
Hello World
ADL of operator expression & unqualified function call
RecursiveDivide
7