I need a function which calculate the capacity. I want that the function calculate for each Agent(agentOfPopulation) a random numeral between 70 and 90. My code:
int agentOfPopulation;
for (int i = 0; i < main.agentOfPopulation.size(); i++){
agentOfPopulation = (int) (Math.random()*90+70);
}
The code doesn't works. Has somebody an idea to solve the problem?