#define __GENERATOR_GENERATION_H
#include <vector>
+#include <cstdlib>
#include "../gene.h"
#include "../chromosome.h"
public:
/**
- * Constructor.
+ * Constructor. Initializes required variables and constans
*
* @param generationSize Indicates size of the generation
* @param generationSize Indicates size of the chromosome
Generation(unsigned int generationSize, unsigned int chromosomeSize) {
this->generationSize = generationSize;
this->chromosomeSize = chromosomeSize;
+
+ time_t t;
+ srand((unsigned)time(&t));
}
/**