I want to randomly select a person (agent) that is in state1 and instruct this random agent to move to state2. I also want to change the random agent's var1(variable) value to "true".
I think that I should use randomWhere(population,condition) to select the random agent, but I do not know how to code it.