Replies: 2 comments 1 reply
-
An interesting addition... It's possible. I'll think on implementing this, but not have time right now. Still you can implement it by your own and create PR for me =)=) |
Beta Was this translation helpful? Give feedback.
0 replies
-
i dont know |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi effolkronium,
I am wondering if it would be possible to support something similar to:
... = Random::get<float>({1.1, 1}, {1.2, 2});
... = Random::get<int> ({1, 3}, {4, 4}, {10, 5});
Where 1, 2 3, 4, 5 are the distribution weights.
An example of pseudocode that could be used:
The complexity would be in the variadic expansions and lists - I think. That said, my c++ is quite rusty at the moment :( .
Beta Was this translation helpful? Give feedback.
All reactions