#NEWLINE# def mutation( self , cfg ) : #NEWLINE# #INDENT# '\n    mutate cfg in place\n    ' #NEWLINE# params = self . manipulator . parameters ( cfg ) #NEWLINE# random . shuffle ( params ) #NEWLINE# for param in cfg [ : self . must_mutate_count ] : #NEWLINE# #INDENT# self . mutate_param ( cfg , param ) #NEWLINE# #UNINDENT# for param in params [ self . must_mutate_count : ] : #NEWLINE# #INDENT# if ( random . random ( ) < self . mutation_rate ) : #NEWLINE# #INDENT# self . mutate_param ( cfg , param )