### min-one-of

#### min-one-of agentset [reporter]

Reports a random agent in the agentset that reports the lowest value for the given reporter. If there is a tie, this command reports one random agent that meets the condition. If you want all such agents use with-min instead.

    show min-one-of turtles [xcor + ycor]
    ;; reports the first turtle with the smallest sum of
    ;; coordinates

See also with-min, min-n-of.

Take me to the full NetLogo Dictionary