7 #include "chromosome.h"
10 using namespace genetic;
13 typedef Gene<int> _Gene;
16 srand((unsigned)time(&t));
20 for (int i = 0; i < 20; i++) {
21 _Gene gene(rand() % 255);
22 cout << "Generated gene: " << gene.get() << "\n";
23 genes.push_back(gene);
25 Chromosome<_Gene> chromosome(genes);