mercredi 3 octobre 2018

Netlogo: how to create a network of turtles sharing the same feature in a random way?

I know how to create a network of turtles sharing the same feature (sds)

  ask turtlel[              
     create-links-with other turtles with [
sds = [ sds ] of myself ]

My question is, it is possible to link just some of those? For example, a link is created given a random probability from zero to one between to turtles having the same sds




Aucun commentaire:

Enregistrer un commentaire