mercredi 27 juillet 2016

Pick a random element from list/array of strings in netLogo

I am new programmer in netlogo. I waned to know how can I pick a random string from a list/array of strings in netLogo? If anyone can please guide me, I will be very much thankful. Thanks

PS : I have done efforts on my part, I only know how to pick a random number from a number range like this

random-float (PRICE * 0.20) ;For float value (price is an integer defined by me)
random round (DifferenceAmt * 0.10) ; For random rounded amount




Aucun commentaire:

Enregistrer un commentaire