samedi 25 février 2017

NetLogo get each time different random number from certain list

let's say I have list

let mylist [0 1 2 3]

and I would like to generate random number from this array which is in every tick different than previous one.

Example: Tick one - generates 0 Tick two - generates 2 Tick three - generates 1 Tick four - generates 3

Now I have

let mylist [0 1 2 3] let x one-of mylist

But that returns for example for two consecutive ticks number 0.

Any tips? Thank you.




Aucun commentaire:

Enregistrer un commentaire