
Hi, Does anyone know how I can access the internal state of the Mersenne twister (boost::mt19937) easily? That is the 623 state bytes. I am looking to initialise a random number generator and then inspect the state to compare it to another system which apparently implements MT19937 but gives different results. If someone could point me in the right direction, that would be great! Thanks! Matthew Gwynne http://cs.swan.ac.uk/~csmg/

Am 18.05.2011 11:43, schrieb Matthew Gwynne:
Hi,
Does anyone know how I can access the internal state of the Mersenne twister (boost::mt19937) easily? That is the 623 state bytes.
I am looking to initialise a random number generator and then inspect the state to compare it to another system which apparently implements MT19937 but gives different results.
If someone could point me in the right direction, that would be great!
Thanks!
Matthew Gwynne http://cs.swan.ac.uk/~csmg/
You can use the << operator to output the state to a stream as space separated list.
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Ah ha! That works perfectly! Thank you! Matthew Gwynne On Wed, May 18, 2011 at 1:20 PM, Sergiu Dotenco <sergiu.dotenco@gmail.com> wrote:
Am 18.05.2011 11:43, schrieb Matthew Gwynne:
Hi,
Does anyone know how I can access the internal state of the Mersenne twister (boost::mt19937) easily? That is the 623 state bytes.
I am looking to initialise a random number generator and then inspect the state to compare it to another system which apparently implements MT19937 but gives different results.
If someone could point me in the right direction, that would be great!
Thanks!
Matthew Gwynne http://cs.swan.ac.uk/~csmg/
You can use the << operator to output the state to a stream as space separated list.
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
participants (2)
-
Matthew Gwynne
-
Sergiu Dotenco