sets wealth of villager . will be a random value between 0 and value of max_wealth . concode_field_sep Profession profession concode_elem_sep int wealth concode_elem_sep int xCoordinate concode_elem_sep Gender gender concode_elem_sep int yCoordinate concode_elem_sep List<Pet> pets concode_elem_sep String name concode_elem_sep int MAX_WEALTH concode_elem_sep int age concode_field_sep void logCoordinates concode_elem_sep String getName concode_elem_sep void setCoordinates concode_elem_sep void setCoordinates concode_elem_sep int getYCoordinate concode_elem_sep int getWealth concode_elem_sep List<Pet> getPets concode_elem_sep String toString concode_elem_sep void addPet concode_elem_sep int compareTo concode_elem_sep int getXCoordinate concode_elem_sep Profession getProfession
void function ( ) { wealth = ( int ) ( Math . random ( ) * MAX_WEALTH ) ; }