I have created 10 turtles in netlogo using
create-ordered-turtles 10
[
let b median (list -17 (random-normal 0 5) 16)
setxy b -12
set size 3 ;
set color black
]
Now I want to assign each turtle a random and different name using a random function like this
one-of [ "Name1" "Name2" "Name3" "Name4" "Name5" "Name6" "Name7" "Name8" "Name9" "Name10"]
Which means that all 10 turtles will have names from Name1 to Name10. But no two turtles will have same name.
Also I want to assign each turtle a different integer amount.
Can anyone please guide me how can I do it. I will be really thankful. Thanks
Aucun commentaire:
Enregistrer un commentaire