Skip to content

Suggestion: Add an ability to set PRNG's initial seed #62

@dxball

Description

@dxball

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; }
}

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions