how can i set a probability for each action?
问题 I've got some turtles which are looking around themselves. For each neighbor they've got, they save the value of "output-heat". The patch with the highest value will get the highest probability and the lowest value the lowest probability. I want the turtle to move to another patch. The moving should be dependent on the probabilities. My code looks like this, but it doesn't work like it should: ask turtles-here[ let temp_ahead [(output-heat + 1)^ Freedom] of patch-at 0 1 let temp_right_ahead [