Logo

Programming-Idioms

History of Idiom 69 > diff from v33 to v34

Edit summary for version 34 by bluesky:
New Csharp implementation by user [bluesky]

Version 33

2019-07-15, 18:34:11

Version 34

2019-09-26, 19:14:59

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.

Imports
using System;
Code
var random = new Random(s);