I am new to programming and I would really appreciate the help. In this model, I want to create a company that can randomly choose btw 2 choices if a certain condition is met. What would be the best way to do it? I tried this but it is not working.
if profit < 0 [
set color red
let choice random 2 (
choice = 0 [ move-to min-one-of patches [costs]]
choice = 1 [ set price (price + 1) ])
]
Thanks for the help!
Aucun commentaire:
Enregistrer un commentaire