NetLogo/models

Wealth distribution contains code that accomplishes nothing

ToonTalk opened this issue · 0 comments

In the following age is set to 0 and then before it is used it is set to random life-expectancy. Also given the name and purpose of set-initial-turtle-vars shouldn't set age random life-expectancy be inside of set-initial-turtle-vars?

...
      set-initial-turtle-vars
      set age random life-expectancy ]
  ...

to set-initial-turtle-vars
  set age 0
...
  set life-expectancy life-expectancy-min +
                        random (life-expectancy-max - life-expectancy-min + 1)
  ...
end