how to randomly select among all the neighbour patches that are higher instead of the highest neighbour patch? I was thinking to remove (if elevation >= [elevation] of max-
; The butterfly move procedure in turtle context
to move ; a turtle procedure
if elevation >= [elevation] of max-one-of neighbors [elevation] [stop]
; Decide whether to move uphill deterministically with probability q
ifelse random-float 1 < q
[ uphill elevation ] ; move uphill
[ move-to one-of neighbors ] ; otherwise move randomly
set patches-visited patches-visited + 1
end