RERANDOM

Synopsis
RERANDOM
(RERANDOM seed)
Description

Makes the output of RANDOM reproducible. Ordinarily the sequence of random numbers is different each time Logo is used. If you need the same sequence of pseudo-random numbers repeatedly, for example, to debug a program, run RERANDOM before the first invocation of RANDOM or PICK. If you need more than one repeatable sequence, you can give RERANDOM an integer input called a "seed"; each distinct seed selects a unique sequence of numbers.

Example
RERANDOM
REPEAT 2 [SHOW RANDOM 10]
6
2
RERANDOM
REPEAT 2 [SHOW RANDOM 10]
6
2

SourceForge.net Logo