setrandom-seed
seed
Parameters:
seed |
Integer |
The new seed |
Description:
Sets the random seed to seed. Integers allowed are in the range -(2^31) to (2^31 -1). Don't pick 0.
Examples:
set-random-seed 345612
sets the random-seed to 345612
.
Notes:
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 the bottom 32 bits of this seed.
Related Commands:
get-random-seed
random
random-gaussian