Turtle and Observer Command |
random-gaussian number
Returns a random number with mean 0 and standard deviation Note: StarLogo uses the random generator provided by Java, which, as of now, is a linear congruential formula (Knuth Art of Computer Programming, Vol 2, Section 3.2.1.), which uses a 48-bit seed. StarLogo only allows you to set 32 bits of this seed. Examples: random-gaussian 5 returns a random number with mean 0 and standard deviation 5. Related commands: |