Logo

Programming-Idioms

History of Idiom 69 > diff from v34 to v35

Edit summary for version 35 by tkoenig:
New Lisp implementation by user [tkoenig]

Version 34

2019-09-26, 19:14:59

Version 35

2019-09-26, 20:44:14

Idiom #69 Seed random generator

Use seed s to initialize a random generator.

If s is constant, the generator output will be the same each time the program runs. If s is based on the current value of the system clock, the generator output will be different each time.

Idiom #69 Seed random generator

Use seed s to initialize a random generator.

If s is constant, the generator output will be the same each time the program runs. If s is based on the current value of the system clock, the generator output will be different each time.

Code
call random_seed (put=s)