I have a population of agents called "destinations" made up of 14 destinations and each destination has its probability of being chosen. At the moment I'm choosing the destination randomly by applying: Destination destination = randomFrom (destinations); How can I consider the probability instead of doing it randomly?
Aucun commentaire:
Enregistrer un commentaire