C ++ 11 change values ​​in std :: discrete_distribution

Is it possible to change a single value in std :: discrete_distribution? I cannot find an easy way to do this. I thought of initializing it with std :: vector with assigned probabilities and changing it every time I want, but reinitializing the discrete distribution every time seems like a bad idea.

+5
source share

Source: https://habr.com/ru/post/1211975/


All Articles