fn create_combined_dna(first_kitty_dna: [u8; 16], second_kitty_dna: [u8; 16], random_dna: [u8; 16]) -> [u8; 16] {
		let mut new_dna = [0u8; 16];

		for i in 0..new_dna.len() {
		    if i < (new_dna.len() / 2) {
    			if i % 2 == 0 {
    				new_dna[i] = first_kitty_dna[i];
    			} else {
    				new_dna[i] = second_kitty_dna[i];
    			}
		    } else {
		        new_dna[i] = random_dna[i];
		    }
		}

		new_dna
	}
// 50% is from parents, another 50% is random
50% is from parents, another 50% is random
50% is from parents another 50% is random
fn create_combined_dna(first_kitty_dna: [u8; 16], second_kitty_dna: [u8; 16], random_dna: [u8; 16]) -> [u8; 16] {
		let mut new_dna = [0u8; 16];
		for i in 0..new_dna.len() {
		    if i < (new_dna.len() / 2) {
    			if i % 2 == 0 {
    				new_dna[i] = first_kitty_dna[i];
    			} else {
    				new_dna[i] = second_kitty_dna[i];
    			}
		    } else {
		        new_dna[i] = random_dna[i];
		    }
		}
		new_dna
	}
fn create_combined_dna ( first_kitty_dna : [ u8 ; 16 ] , second_kitty_dna : [ u8 ; 16 ] , random_dna : [ u8 ; 16 ] ) -> [ u8 ; 16 ] { let mut new_dna = [ 0u8 ; 16 ] ; for i in 0 .. new_dna . len ( ) { if i < ( new_dna . len ( ) / 2 ) { if i % 2 == 0 { new_dna [ i ] = first_kitty_dna [ i ] ; } else { new_dna [ i ] = second_kitty_dna [ i ] ; } } else { new_dna [ i ] = random_dna [ i ] ; } } new_dna }
50% is from parents, another 50% is random
50% is from parents another 50% is random
first_kitty_dna
[u8; 16]
second_kitty_dna
[u8; 16]
random_dna
[u8; 16]