Skip to content

Implement Random.Choice extension method  #725

@AntyaDev

Description

@AntyaDev

Documentation link

This function randomly selects an item based on relative weight/probabilities across all data items.

in this example:

  • step_1 has weight 1 = 50%
  • step_2 has weight 2 = 100%
var stepName = context.Random.Choice(("step_1", 1), ("step_2", 2))

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions