samedi 15 juillet 2017

How to implement an own generator to be used with std distibutions

I would like to use a random number generator i implemented with some of the distributions from the C++11 library.

Is there an interface my generator class has to adhere to so an instance of it can be passed to the operator() method of a distribution?

Or is there base class from which i must derive my class?

Aucun commentaire:

Enregistrer un commentaire