Advertisement
nq1s788

рандом

Aug 15th, 2024
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.59 KB | None | 0 0
  1. #include <iostream>
  2. #include <vector>
  3. #include <algorithm>
  4. #include <fstream>
  5. #include <functional>
  6. #include <cmath>
  7. #include <set>
  8. #include <deque>
  9. #include <queue>
  10. #include <utility>
  11. #include <map>
  12. #include <string>
  13. #include <iomanip>
  14. #include <cmath>
  15. #include <utility>
  16. #include <ctype.h>
  17. #include <stdio.h>
  18. #include <random>
  19. #include <ctime>
  20.  
  21.  
  22. #define mp make_pair
  23.  
  24. typedef long long ll;
  25.  
  26. using namespace std;
  27.  
  28. int main() {
  29.     mt19937 gen(time(0));
  30.     uniform_real_distribution<double> dist(0.0, 1.0);
  31.     ...
  32.     double a = dist(gen);
  33.     double b = dist(gen);
  34.     ...
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement