-
-
Notifications
You must be signed in to change notification settings - Fork 341
Closed
Labels
Description
Is your feature request related to a problem? Please describe.
Sometimes I need to generate the same result with the same parameter, so the fixed PRNG seed will be one of the ways to do this.
Describe the solution you'd like
Add a constructor to RandomizationBase
, and implement in all Randomization class
public abstract class RandomizationBase : IRandomization
{
protected readonly int seed;
public RandomizationBase() : this((int)DateTime.Now.Ticks) { }
public RandomizationBase(int seed) { this. seed = seed; }
}
andyesys