def generate_gamete(self, egg_or_sperm_word):
p_rate_of_mutation = [<NUM_LIT>, <NUM_LIT:0.1>]<EOL>should_use_mutant_pool = (npchoice([<NUM_LIT:0>,<NUM_LIT:1>], <NUM_LIT:1>, p=p_rate_of_mutation)[<NUM_LIT:0>] == <NUM_LIT:1>)<EOL>if should_use_mutant_pool:<EOL><INDENT>pool = tokens.secondary_tokens<EOL><DEDENT>else:<EOL><INDENT>pool = tokens.primary_tokens<EOL><DEDENT>return get_matches(egg_or_sperm_word, pool, <NUM_LIT>)<EOL>
Extract 23 'chromosomes' aka words from 'gene pool' aka list of tokens
        by searching the list of tokens for words that are related to the given
        egg_or_sperm_word.