teamnote history merge
This commit is contained in:
7
2025fall/source/Misc/mt19937.cpp
Normal file
7
2025fall/source/Misc/mt19937.cpp
Normal file
@@ -0,0 +1,7 @@
|
||||
const long long rand_L = 1;
|
||||
const long long rand_R = 10;
|
||||
mt19937_64 rng(chrono::steady_clock::now().time_since_epoch().count());
|
||||
uniform_int_distribution<int> dist(rand_L, rand_R);
|
||||
auto gen = bind(dist, rng);
|
||||
|
||||
gen(); gen(); gen();
|
||||
Reference in New Issue
Block a user