Observer

set-random-seed num

Parameters:
num Integer The seed for the random number generator

Description:
Sets the random seed to num. Integers allowed are in the range -231 to 231-1.

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 32 bits of this seed.

Related Commands:
get-random-seed random random-gaussian