Skip to content

SP4: Improve Generate seeding #2893

@swharden

Description

@swharden

Spillover from #2861, calling RandomWalk() multiple times in rapid succession does not properly re-seed. Fix this internally using a private static instance of the random data generator.

ScottPlot.Plot plt = new();
for (int k = 0; k < 50; k++)
{
    double[] data = ScottPlot.Generate.RandomWalk(10000);
    plt.AddSignalConst(data);
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions