Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<bits/stdc++.h>
- #define LL long long
- #define N ((int)1e5 + 8)
- #define MAX ((int)1e9 + 8)
- #define fastio ios_base::sync_with_stdio(false),cin.tie(NULL)
- using namespace std;
- mt19937 rng(chrono::steady_clock::now().time_since_epoch().count()); // generator
- int GetRandomNumber(int a , int b)
- {
- return uniform_int_distribution<int>(a, b)(rng); //rand([a,b])
- }
- int main()
- {
- cout<<GetRandomNumber(0 , 100)<<endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement