def perturbed_contents(self):
animal = json.loads(self.contents)<EOL>for prop, prop_range in self.properties.items():<EOL><INDENT>range = prop_range[<NUM_LIT:1>] - prop_range[<NUM_LIT:0>]<EOL>jittered = animal[prop] + random.gauss(<NUM_LIT:0>, <NUM_LIT:0.1> * range)<EOL>animal[prop] = max(min(jittered, prop_range[<NUM_LIT:1>]), prop_range[<NUM_LIT:0>])<EOL><DEDENT>return json.dumps(animal)<EOL>
Perturb the given animal.