Hunt success netlogo
问题 I have coded my turtles to go out and hunt, however when they find prey they simply eat it, is there anyway to add a mathematical factor for their chances of success instead of it always being 100% essentially when they find prey, roll the dice and see if they can eat it. to search ;when wolf is hungry set energy energy - 1 fd v-wolf if random 600 = 1 ;; frequency of turn [ ifelse random 2 = 0 ;; 50:50 chance of left or right [ rt 15 ] ;; could add some variation to this with random-normal 45