Skip to content

Python-style Random extensions for collections #65

Description

@brcrista

Python's random module has some convenient functions for working with sequences:

C#'s Random class is pretty sparse by comparison: https://docs.microsoft.com/en-us/dotnet/api/system.random?view=netcore-3.1#methods

Make the following extension methods for Random:

  • Choice()
  • Choices()
  • Shuffle()

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions