EK
Size: a a a
EK
NI
EK
SG
0
vector<T>collection = decltype(T)(100500);
D
D
EK
vector<uint32_t>
и вручную биты сдвигать?D
vector<uint32_t>
и вручную биты сдвигать?D
D
EK
vector<T>collection = decltype(T)(100500);
EK
D
D
EK
0
EK
EK
AP
#include <random>
#include <iostream>
using namespace std;
int main()
{
random_device rd; // non-deterministic generator
mt19937 gen(rd()); // to seed mersenne twister.
uniform_int_distribution<> dist(1,6); // distribute results between 1 and 6 inclusive.
for (int i = 0; i < 5; ++i) {
cout << dist(gen) << " "; // pass the generator to the distribution.
}
cout << endl;
}