Subject: Re: [boost] How to inspect state of boost::mt19937?
From: Matthew Gwynne (mathew.gwynne_at_[hidden])
Date: 2011-05-20 09:40:10
Ah ha! That works perfectly!
On Wed, May 18, 2011 at 1:20 PM, Sergiu Dotenco
> Am 18.05.2011 11:43, schrieb Matthew Gwynne:
>> 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!
>> Matthew Gwynne
> 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
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk