Change from default_random_engine to mt19937_64

It should give better random numbers now.
This commit is contained in:
Segcolt 2024-10-14 12:12:48 -03:00
parent 07cea8fa77
commit a1d6ed7d75

2
sa.hpp
View File

@ -94,7 +94,7 @@ class box {
class solution { class solution {
std::vector<box> boxes; std::vector<box> boxes;
std::default_random_engine gen; std::mt19937_64 gen;
long long fitness; long long fitness;
int capacity; int capacity;
int iterations; int iterations;