public BinaryChromosome( int length ) { this.length = Math.Max( 2, Math.Min( MaxLength, length ) ); // randomize the chromosome Generate( ); }