Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Probabilistic Distribution of Enum Values #99

Open
rhythmgt opened this issue Apr 17, 2023 · 1 comment
Open

Probabilistic Distribution of Enum Values #99

rhythmgt opened this issue Apr 17, 2023 · 1 comment

Comments

@rhythmgt
Copy link

Is it possible to distribute particular enum values in user defined probabilities ? This will be helpful in preparing a collections which resembles real world scenarios

@rickhg12hs
Copy link

I've done this manually by repeating enum values. For example, if I have 2 enum values and I want valueA to be used about twice the rate of valueB, I will include 2 valueA and 1 valueB in the enum array.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants