lundi 15 novembre 2021

How are random numbers created in Netlogo?

Most simulation software does not calculate truly random numbers but rather pseudorandom numbers based on mathematical calculations.

Say a code like this is used:

to go
   let x random-float 100
   print x
end
  1. Which way is used for this in NetLogo? (Middle square method, LCG etc.?)
  2. How reproducible is the same set of pseudorandom numbers?
  3. How long is the periodicity until the same pseudorandom number shows up again?
  4. Are the numbers following a uniform distribution?



Aucun commentaire:

Enregistrer un commentaire