[Numpy-discussion] reseed random generator (1.19)

Kevin Sheppard kevin.k.sheppard at gmail.com
Wed Jun 24 16:39:00 EDT 2020


Just call

rs = default_rng()

Again.



On Wed, Jun 24, 2020, 20:31 Neal Becker <ndbecker2 at gmail.com> wrote:

> Consider the following:
>
> from numpy.random import default_rng
> rs = default_rng()
>
> Now how do I re-seed the generator?
> I thought perhaps rs.bit_generator.seed(), but there is no such attribute.
>
> Thanks,
> Neal
>
> --
> *Those who don't understand recursion are doomed to repeat it*
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at python.org
> https://mail.python.org/mailman/listinfo/numpy-discussion
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20200624/b707c0f8/attachment-0001.html>


More information about the NumPy-Discussion mailing list