Skip to content

SP5 RandomDataGenerator: Methods to return single numbers #2774

@swharden

Description

@swharden

e.g., Random() only returns arrays

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Good First IssueThis 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!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions