I have a C++ uniform distribution object. However, it is a class member, not on the stack (like every example seems to be).
I would like to set the upper and lower bounds of the distribution after reading config at run-time.
I saw there is a reset() member, but this doesn't allow passing a min and max.
What's the best way change the upper and lower bounds after construction? Should I just create one on the stack and assign it to my class member?
Aucun commentaire:
Enregistrer un commentaire