Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <random>
- #include <iostream>
- int main() {
- std::random_device rd;
- std::mt19937 mt(rd());
- std::uniform_real_distribution<double> dist(1.0, 10.0);
- for (int i=0; i<16; ++i)
- std::cout << dist(mt) << "\n";
- }
Add Comment
Please, Sign In to add comment