-
Notifications
You must be signed in to change notification settings - Fork 981
Closed
Labels
Good First IssueThis issue has limited complexity and may be a good start for new contributorsThis issue has limited complexity and may be a good start for new contributorsHelp WantedScott won't do this soon, but PRs from the community are welcome!Scott won't do this soon, but PRs from the community are welcome!
Description
e.g., Random() only returns arrays
ScottPlot/src/ScottPlot5/ScottPlot5/RandomDataGenerator.cs
Lines 28 to 34 in 1a4568c
| public double[] Random(int count, double mult = 1, double offset = 0) | |
| { | |
| double[] values = new double[count]; | |
| for (int i = 0; i < count; i++) | |
| values[i] = Rand.NextDouble() * mult + offset; | |
| return values; | |
| } |
It would be nice if there were method overloads that returned single numbers:
Random()RandomNormal()
While we're in there it may be nice to have
RandomColor()RandomOHLC()(pull from RandomDataGeneratorExtensions.cs and delete that file)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Good First IssueThis issue has limited complexity and may be a good start for new contributorsThis issue has limited complexity and may be a good start for new contributorsHelp WantedScott won't do this soon, but PRs from the community are welcome!Scott won't do this soon, but PRs from the community are welcome!