[Numpy-discussion] mtrand.c update 1.11 breaks my crappy code

Robert Kern robert.kern at gmail.com
Wed Apr 6 11:27:49 EDT 2016


On Wed, Apr 6, 2016 at 4:17 PM, Neal Becker <ndbecker2 at gmail.com> wrote:

> I prefer to use a single instance of a RandomState so that there are
> guarantees about the independence of streams generated from python random
> functions, and from my c++ code.  True, there are simpler approaches - but
> I'm a purist.

Consider using PRNGs that actually expose truly independent streams instead
of a single shared stream:

https://github.com/bashtage/ng-numpy-randomstate

--
Robert Kern
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20160406/78ab2edd/attachment.html>


More information about the NumPy-Discussion mailing list