Logo

Programming-Idioms

History of Idiom 69 > diff from v20 to v21

Edit summary for version 21 by :

Version 20

2015-10-31, 14:45:29

Version 21

2015-11-30, 12:37:30

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.