lundi 26 janvier 2015

Generate random number within a range in NetLogo

I am trying to generate random numbers using the random-poisson function. This function only seems to allow me to give it the mean, while this is OK, I also want to give it a min and max value. For example, if I wanted to create a function that generates a random week number (1-52), with the most likely pick being, say, week 30, how would I create a function in NetLogo that creates a random number that doesn't exceed 52?





Aucun commentaire:

Enregistrer un commentaire